mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 06:14:32 +00:00
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:
parent
7badc92c2a
commit
a8ae67f639
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user