[MPlayer-cvslog] r22371 - trunk/libmpdemux/demux_rtp.cpp

nicodvb subversion at mplayerhq.hu
Tue Feb 27 22:16:55 CET 2007


Author: nicodvb
Date: Tue Feb 27 22:16:54 2007
New Revision: 22371

Modified:
   trunk/libmpdemux/demux_rtp.cpp

Log:
1000l, removed code that messed with the internals of demux_packet_t (but there's still more); patch by C.E.Hoyos fixed by me

Modified: trunk/libmpdemux/demux_rtp.cpp
==============================================================================
--- trunk/libmpdemux/demux_rtp.cpp	(original)
+++ trunk/libmpdemux/demux_rtp.cpp	Tue Feb 27 22:16:54 2007
@@ -348,7 +348,6 @@ Boolean insertRTPData(demuxer_t* demuxer
 
   // Copy our data into the buffer, and save it:
   memmove(dp->buffer, data, dataLen);
-  dp->len = dataLen;
   dp->pts = 0;
   bufferQueue->savePendingBuffer(dp);
   return True;
@@ -402,7 +401,7 @@ static void afterReading(void* clientDat
   if (frameSize > 0) demuxer->stream->eof = 0;
 
   demux_packet_t* dp = bufferQueue->dp;
-  dp->len = frameSize;
+  resize_demux_packet(dp, frameSize);
 
   // Set the packet's presentation time stamp, depending on whether or
   // not our RTP source's timestamps have been synchronized yet: 



More information about the MPlayer-cvslog mailing list