add log info for rtmp conn. change the mw_latency to 100 for realtime.
正在显示
2 个修改的文件
包含
7 行增加
和
0 行删除
trunk/conf/realtime.conf
100644 → 100755
@@ -615,8 +615,11 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd) | @@ -615,8 +615,11 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd) | ||
615 | #ifdef SRS_PERF_QUEUE_COND_WAIT | 615 | #ifdef SRS_PERF_QUEUE_COND_WAIT |
616 | // we use wait to get messages, so the count must be positive. | 616 | // we use wait to get messages, so the count must be positive. |
617 | srs_assert(count > 0); | 617 | srs_assert(count > 0); |
618 | + srs_info("mw wait %dms and got %d msgs %"PRId64"-%"PRId64"ms", | ||
619 | + mw_sleep, count, msgs.msgs[0]->timestamp, msgs.msgs[count - 1]->timestamp); | ||
618 | #else | 620 | #else |
619 | if (count <= 0) { | 621 | if (count <= 0) { |
622 | + srs_info("mw sleep %dms for no msg", mw_sleep); | ||
620 | st_usleep(mw_sleep * 1000); | 623 | st_usleep(mw_sleep * 1000); |
621 | } | 624 | } |
622 | #endif | 625 | #endif |
-
请 注册 或 登录 后发表评论