1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-07 03:56:28 +02:00

* modules/codec/libmpeg2.c: make sure there are no more linked pictures

left when closing the decoder.
This commit is contained in:
Gildas Bazin 2003-04-22 23:31:07 +00:00
parent cb0828bde8
commit 340204ae68

View File

@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: libmpeg2.c,v 1.13 2003/04/22 12:54:49 gbazin Exp $
* $Id: libmpeg2.c,v 1.14 2003/04/22 23:31:07 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -391,6 +391,9 @@ static void CloseDecoder( dec_thread_t * p_dec )
RESERVED_PICTURE )
vout_DestroyPicture( p_dec->p_vout,
p_dec->p_vout->render.pp_picture[i_pic] );
if( p_dec->p_vout->render.pp_picture[i_pic]->i_refcount > 0 )
vout_UnlinkPicture( p_dec->p_vout,
p_dec->p_vout->render.pp_picture[i_pic] );
}
vout_Request( p_dec->p_fifo, p_dec->p_vout, 0, 0, 0, 0 );