summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2002-12-22 22:36:58 +0000
committerMike Melanson <mike@multimedia.cx>2002-12-22 22:36:58 +0000
commite295ecb14bc3058afc60e4453eeb77dc40e3c3c0 (patch)
tree63322230dbd56fc9d3f5b14afab933054e881efe
parent2cfd6901136fed3ff71c9fd1719747e123a5692d (diff)
downloadxine-lib-e295ecb14bc3058afc60e4453eeb77dc40e3c3c0.tar.gz
xine-lib-e295ecb14bc3058afc60e4453eeb77dc40e3c3c0.tar.bz2
mmm hmmm...that's nice, but we don't need to hear about it all the
time... CVS patchset: 3635 CVS date: 2002/12/22 22:36:58
-rw-r--r--src/libmpeg2/decode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c
index e4f8982b6..838dead73 100644
--- a/src/libmpeg2/decode.c
+++ b/src/libmpeg2/decode.c
@@ -625,8 +625,10 @@ void mpeg2_flush (mpeg2dec_t * mpeg2dec) {
if (picture->current_frame && !picture->current_frame->drawn &&
!picture->current_frame->bad_frame) {
+#ifdef LOG
printf ("libmpeg2: blasting out current frame %d on flush\n",
picture->current_frame->id);
+#endif
picture->current_frame->drawn = 1;
get_frame_duration(mpeg2dec, picture->current_frame);
@@ -655,7 +657,9 @@ void mpeg2_close (mpeg2dec_t * mpeg2dec)
if ( picture->current_frame ) {
if( !picture->current_frame->drawn ) {
+#ifdef LOG
printf ("libmpeg2: blasting out current frame on close\n");
+#endif
picture->current_frame->pts = 0;
get_frame_duration(mpeg2dec, picture->current_frame);
picture->current_frame->draw (picture->current_frame, mpeg2dec->stream);
@@ -677,7 +681,9 @@ void mpeg2_close (mpeg2dec_t * mpeg2dec)
if (picture->backward_reference_frame) {
if( !picture->backward_reference_frame->drawn) {
+#ifdef LOG
printf ("libmpeg2: blasting out backward reference frame on close\n");
+#endif
picture->backward_reference_frame->pts = 0;
get_frame_duration(mpeg2dec, picture->backward_reference_frame);
picture->backward_reference_frame->draw (picture->backward_reference_frame, mpeg2dec->stream);