changeset 9786:177a3393057c

Added some optional debugging printfs (disabled by default)
author rsf
date Wed, 02 Apr 2003 01:38:07 +0000
parents 36a2215d1146
children c3b63fb0e8db
files libmpdemux/demux_rtp.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rtp.cpp	Tue Apr 01 23:03:18 2003 +0000
+++ b/libmpdemux/demux_rtp.cpp	Wed Apr 02 01:38:07 2003 +0000
@@ -253,6 +253,11 @@
       break;
     }
     
+#ifdef DEBUG_PRINT_DISCARDED_PACKETS
+    RTPState* rtpState = (RTPState*)(demuxer->priv);
+    ReadBufferQueue* bufferQueue = ds == demuxer->video ? rtpState->videoBufferQueue : rtpState->audioBufferQueue;
+    fprintf(stderr, "Discarding %s packet (%fs behind)\n", bufferQueue->tag(), ptsBehind);
+#endif
     free_demux_packet(dp); // give back this packet, and get another one
   }