summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: