From e295ecb14bc3058afc60e4453eeb77dc40e3c3c0 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Sun, 22 Dec 2002 22:36:58 +0000 Subject: 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 --- src/libmpeg2/decode.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libmpeg2/decode.c') 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); -- cgit v1.2.3