OSDN Git Service

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)
committerMartin Storsjö <martin@martin.st>
Tue, 8 Jan 2013 09:22:37 +0000 (11:22 +0200)
commit8729698d50739524665090e083d1bfdf28235724
treeb58cae850c1e0c524f59bd546eed72a599f400ea
parent7ff3fd7ae4d6b178501f2f98ff64cbaad02752cc
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>
libavformat/rtsp.c