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

For #2194, yield for high performance timer, for live player

This commit is contained in:
winlin 2021-02-11 21:15:26 +08:00
parent c0fda42743
commit d1bcc03d9a

View file

@ -826,6 +826,9 @@ srs_error_t SrsRtmpConn::do_playing(SrsSource* source, SrsConsumer* consumer, Sr
if (send_min_interval > 0) { if (send_min_interval > 0) {
srs_usleep(send_min_interval); srs_usleep(send_min_interval);
} }
// Yield to another coroutines.
srs_thread_yield();
} }
return err; return err;