winlin

fix #134, not fix for the shrink to clear the queue.

@@ -244,7 +244,9 @@ void SrsMessageQueue::shrink() @@ -244,7 +244,9 @@ void SrsMessageQueue::shrink()
244 } 244 }
245 } 245 }
246 246
247 - // no iframe, clear the queue. 247 + // no iframe, for audio, clear the queue.
  248 + // it is ok to clear for audio, for the shrink tell us the queue is full.
  249 + // @see: https://github.com/winlinvip/simple-rtmp-server/issues/134
248 if (iframe_index < 0) { 250 if (iframe_index < 0) {
249 clear(); 251 clear();
250 return; 252 return;