rtsp: Recheck the reordering queue if getting a new packet
authorMartin Storsjö <martin@martin.st>
Mon, 7 Jan 2013 16:39:04 +0000 (18:39 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sat, 12 Jan 2013 16:59:40 +0000 (17:59 +0100)
commitd1d329932fd47d5e0fd4ca3c37827b98981c62cd
tree8ceaf36f5f01a997925e55713e922ced09507d5a
parentdfb7a638e6b9d4b86b7e3c5cf97bdd7621adc5f6
rtsp: Recheck the reordering queue if getting a new packet

If we timed out and consumed a packet from the reordering queue,
but didn't return a packet to the caller, recheck the queue status.
Otherwise, we could end up in an infinite loop, trying to consume
a queued packet that has already been consumed.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 8729698d50739524665090e083d1bfdf28235724)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavformat/rtsp.c