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
This commit is contained in:
rsf 2003-04-12 09:30:19 +00:00
parent 7badc92c2a
commit a8ae67f639
1 changed files with 4 additions and 1 deletions

View File

@ -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: