1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine SrsMessageQueue.duration in time unit.

This commit is contained in:
winlin 2019-04-11 08:35:57 +08:00
parent 170cca1f58
commit 695d430dcf
6 changed files with 32 additions and 28 deletions

View file

@ -725,10 +725,10 @@ srs_error_t SrsRtmpConn::do_playing(SrsSource* source, SrsConsumer* consumer, Sr
// @see https://github.com/ossrs/srs/issues/257
if (realtime) {
// for realtime, min required msgs is 0, send when got one+ msgs.
consumer->wait(0, srsu2msi(mw_sleep));
consumer->wait(0, mw_sleep);
} else {
// for no-realtime, got some msgs then send.
consumer->wait(SRS_PERF_MW_MIN_MSGS, srsu2msi(mw_sleep));
consumer->wait(SRS_PERF_MW_MIN_MSGS, mw_sleep);
}
#endif