From b10d95205a28a34a4329bbb60a6200c6c40cb6fc Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 26 Jul 2014 16:32:28 +0800 Subject: [PATCH] fix #134, not fix for the shrink to clear the queue. --- trunk/src/app/srs_app_source.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_source.cpp b/trunk/src/app/srs_app_source.cpp index 60cd53c60..9654f0e38 100644 --- a/trunk/src/app/srs_app_source.cpp +++ b/trunk/src/app/srs_app_source.cpp @@ -244,7 +244,9 @@ void SrsMessageQueue::shrink() } } - // no iframe, clear the queue. + // no iframe, for audio, clear the queue. + // it is ok to clear for audio, for the shrink tell us the queue is full. + // @see: https://github.com/winlinvip/simple-rtmp-server/issues/134 if (iframe_index < 0) { clear(); return;