summaryrefslogtreecommitdiff
path: root/src/libmpeg2/decode.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-03-25 01:02:51 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-03-25 01:02:51 +0000
commit8f1bca49ef90081e67ce29bb01b2a8d9fafb7d07 (patch)
tree0c818f1283e6e3e358fd2562852147f210e58940 /src/libmpeg2/decode.c
parentfceae5849b57feab320e768696564b3b93bcddc7 (diff)
downloadxine-lib-8f1bca49ef90081e67ce29bb01b2a8d9fafb7d07.tar.gz
xine-lib-8f1bca49ef90081e67ce29bb01b2a8d9fafb7d07.tar.bz2
- fix frames leaking
- big video_out locking cleanup: no more decoder_locked, display_locked, driver_locked madness! CVS patchset: 1630 CVS date: 2002/03/25 01:02:51
Diffstat (limited to 'src/libmpeg2/decode.c')
-rw-r--r--src/libmpeg2/decode.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c
index b78b178d5..866a7b1b0 100644
--- a/src/libmpeg2/decode.c
+++ b/src/libmpeg2/decode.c
@@ -510,7 +510,6 @@ void mpeg2_flush (mpeg2dec_t * mpeg2dec) {
img = picture->backward_reference_frame->instance->duplicate_frame(picture->backward_reference_frame->instance,
picture->backward_reference_frame);
img->pts = 0;
- img->scr = 0;
img->bad_frame = 0;
img->drawn = 1;
@@ -537,21 +536,12 @@ void mpeg2_close (mpeg2dec_t * mpeg2dec)
leak, and we only have about 15 of them.
*/
if (picture->forward_reference_frame) {
- /*
- printf ("libmpeg2: blasting out forward reference frame on close\n");
-// picture->forward_reference_frame->PTS = 0;
- picture->forward_reference_frame->bad_frame = 0;
- get_frame_duration(mpeg2dec, picture->forward_reference_frame);
- picture->forward_reference_frame->draw (picture->forward_reference_frame);
- */
- picture->forward_reference_frame->displayed (picture->forward_reference_frame);
picture->forward_reference_frame->free (picture->forward_reference_frame);
}
if (picture->throwaway_frame) {
printf ("libmpeg2: blasting out throwaway frame on close\n");
picture->throwaway_frame->pts = 0;
- picture->throwaway_frame->scr = 0;
get_frame_duration(mpeg2dec, picture->throwaway_frame);
picture->throwaway_frame->draw (picture->throwaway_frame);
picture->throwaway_frame->free (picture->throwaway_frame);