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 18:34:40 +0000 (19:34 +0100)
commit808187965570012cca99a7c0fdf1d93652947285
tree864e00cf48f2b7ba099f0cb53593a9987c05662c
parenta39c6bf1b878f6667697225299707ef08a9482c8
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