mirror of https://github.com/mpv-player/mpv
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:
parent
2fc79f67a7
commit
bc5277b1bd
|
@ -253,6 +253,11 @@ extern "C" int demux_rtp_fill_buffer(demuxer_t* demuxer, demux_stream_t* ds) {
|
||||||
break;
|
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
|
free_demux_packet(dp); // give back this packet, and get another one
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue