[Mplayer-cvslog] CVS: main/libmpdemux demux_rtp.cpp,1.15,1.16

Ross Finlayson CVS rsf at mplayerhq.hu
Sat Apr 12 11:30:22 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv11110

Modified Files:
	demux_rtp.cpp 
Log Message:
Fixed a bug that could sometimes cause the first video packet in a RTP stream
to be rejected.


Index: demux_rtp.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rtp.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- demux_rtp.cpp	11 Apr 2003 02:35:01 -0000	1.15
+++ demux_rtp.cpp	12 Apr 2003 09:30:19 -0000	1.16
@@ -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:



More information about the MPlayer-cvslog mailing list