Mercurial > mplayer.hg
comparison libmpdemux/demux_rtp.cpp @ 9786:177a3393057c
Added some optional debugging printfs (disabled by default)
author | rsf |
---|---|
date | Wed, 02 Apr 2003 01:38:07 +0000 |
parents | e74916774667 |
children | afbbf103a662 |
comparison
equal
deleted
inserted
replaced
9785:36a2215d1146 | 9786:177a3393057c |
---|---|
251 if (ptsBehind < ptsBehindThreshold || rtspStreamOverTCP) { // packet's OK | 251 if (ptsBehind < ptsBehindThreshold || rtspStreamOverTCP) { // packet's OK |
252 ds_add_packet(ds, dp); | 252 ds_add_packet(ds, dp); |
253 break; | 253 break; |
254 } | 254 } |
255 | 255 |
256 #ifdef DEBUG_PRINT_DISCARDED_PACKETS | |
257 RTPState* rtpState = (RTPState*)(demuxer->priv); | |
258 ReadBufferQueue* bufferQueue = ds == demuxer->video ? rtpState->videoBufferQueue : rtpState->audioBufferQueue; | |
259 fprintf(stderr, "Discarding %s packet (%fs behind)\n", bufferQueue->tag(), ptsBehind); | |
260 #endif | |
256 free_demux_packet(dp); // give back this packet, and get another one | 261 free_demux_packet(dp); // give back this packet, and get another one |
257 } | 262 } |
258 | 263 |
259 return 1; | 264 return 1; |
260 } | 265 } |