summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrsf <rsf@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-12 09:30:19 +0000
committerrsf <rsf@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-12 09:30:19 +0000
commita8ae67f639463e30dd3a433e26256ff3892f69e5 (patch)
tree05ace775727ac016661ed5455833d470664dd6bc /libmpdemux
parent7badc92c2a3a067278f6ef07c0d876a5e156e68b (diff)
downloadmpv-a8ae67f639463e30dd3a433e26256ff3892f69e5.tar.bz2
mpv-a8ae67f639463e30dd3a433e26256ff3892f69e5.tar.xz
Fixed a bug that could sometimes cause the first video packet in a RTP stream
to be rejected. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9912 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_rtp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp
index e83bf2414e..56e0e3682f 100644
--- a/libmpdemux/demux_rtp.cpp
+++ b/libmpdemux/demux_rtp.cpp
@@ -441,7 +441,10 @@ static demux_packet_t* getBuffer(demuxer_t* demuxer, demux_stream_t* ds,
if (!mustGetNewData) {
// Check whether we have a previously-saved buffer that we can use:
dp = bufferQueue->getPendingBuffer();
- if (dp != NULL) return dp;
+ if (dp != NULL) {
+ ptsBehind = 0.0; // so that we always accept this data
+ return dp;
+ }
}
// Allocate a new packet buffer, and arrange to read into it: