Skip to content

Commit

Permalink
add log info for rtmp conn. change the mw_latency to 100 for realtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Dec 10, 2014
1 parent 6bdd0af commit 68ade0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trunk/conf/realtime.conf
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ max_connections 1000;
vhost __defaultVhost__ {
gop_cache off;
queue_length 10;
mr {
enabled off;
}
mw_latency 100;
}
3 changes: 3 additions & 0 deletions trunk/src/app/srs_app_rtmp_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,11 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd)
#ifdef SRS_PERF_QUEUE_COND_WAIT
// we use wait to get messages, so the count must be positive.
srs_assert(count > 0);
srs_info("mw wait %dms and got %d msgs %"PRId64"-%"PRId64"ms",
mw_sleep, count, msgs.msgs[0]->timestamp, msgs.msgs[count - 1]->timestamp);
#else
if (count <= 0) {
srs_info("mw sleep %dms for no msg", mw_sleep);
st_usleep(mw_sleep * 1000);
}
#endif
Expand Down

0 comments on commit 68ade0a

Please sign in to comment.