mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
fix #134, not fix for the shrink to clear the queue.
This commit is contained in:
parent
b10d95205a
commit
fbddfbc8a3
1 changed files with 2 additions and 0 deletions
|
@ -246,6 +246,8 @@ void SrsMessageQueue::shrink()
|
||||||
|
|
||||||
// no iframe, for audio, 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.
|
// it is ok to clear for audio, for the shrink tell us the queue is full.
|
||||||
|
// for video, we clear util the I-Frame, for the decoding must start from I-frame,
|
||||||
|
// for audio, it's ok to clear any data, also we can clear the whole queue.
|
||||||
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/134
|
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/134
|
||||||
if (iframe_index < 0) {
|
if (iframe_index < 0) {
|
||||||
clear();
|
clear();
|
||||||
|
|
Loading…
Reference in a new issue