changeset 9911:fa45d335a43b

Fixed a bug that could sometimes cause the first video packet in a RTP stream to be rejected.
author rsf
date Sat, 12 Apr 2003 09:30:19 +0000
parents 41ed68e3a034
children 39444d65c4cb
files libmpdemux/demux_rtp.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rtp.cpp	Sat Apr 12 09:29:13 2003 +0000
+++ b/libmpdemux/demux_rtp.cpp	Sat Apr 12 09:30:19 2003 +0000
@@ -441,7 +441,10 @@
   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: