Added some optional debugging printfs (disabled by default)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9787 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rsf 2003-04-02 01:38:07 +00:00
parent 2fc79f67a7
commit bc5277b1bd
1 changed files with 5 additions and 0 deletions

View File

@ -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
}