From bc5277b1bdd3eedbfb32ae301f66ea4d8b6b1e8c Mon Sep 17 00:00:00 2001 From: rsf Date: Wed, 2 Apr 2003 01:38:07 +0000 Subject: [PATCH] Added some optional debugging printfs (disabled by default) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9787 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_rtp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp index 9abb911fb2..3aeb9334d6 100644 --- a/libmpdemux/demux_rtp.cpp +++ b/libmpdemux/demux_rtp.cpp @@ -253,6 +253,11 @@ extern "C" int demux_rtp_fill_buffer(demuxer_t* demuxer, demux_stream_t* ds) { 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 }