mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix the timebase bug, change from us to ms. (#876)
* fix SRS_CONSTS_RTMP_PULSE_TMMS (int64_t)(500*1000LL) * fix SrsBufferCache::cycle st_usleep(SRS_CONSTS_RTMP_PULSE_TMMS * 1000) * fix st_usleep(SRS_CONSTS_RTMP_PULSE_TMMS * 1000)
This commit is contained in:
parent
e8ea27088a
commit
92c8c0505d
2 changed files with 2 additions and 2 deletions
|
@ -572,7 +572,7 @@ int SrsLiveStream::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r)
|
||||||
if (count <= 0) {
|
if (count <= 0) {
|
||||||
srs_info("http: sleep %dms for no msg", SRS_CONSTS_RTMP_PULSE_TMMS);
|
srs_info("http: sleep %dms for no msg", SRS_CONSTS_RTMP_PULSE_TMMS);
|
||||||
// directly use sleep, donot use consumer wait.
|
// directly use sleep, donot use consumer wait.
|
||||||
st_usleep(SRS_CONSTS_RTMP_PULSE_TMMS);
|
st_usleep(SRS_CONSTS_RTMP_PULSE_TMMS * 1000);
|
||||||
|
|
||||||
// ignore when nothing got.
|
// ignore when nothing got.
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -550,7 +550,7 @@ int SrsConsumer::dump_packets(SrsMessageArray* msgs, int& count)
|
||||||
void SrsConsumer::wait(int nb_msgs, int duration)
|
void SrsConsumer::wait(int nb_msgs, int duration)
|
||||||
{
|
{
|
||||||
if (paused) {
|
if (paused) {
|
||||||
st_usleep(SRS_CONSTS_RTMP_PULSE_TMMS);
|
st_usleep(SRS_CONSTS_RTMP_PULSE_TMMS * 1000);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue