[vlc-devel] commit: Partially work around a picture link in libmpeg2. (Laurent Aimar )
git version control
git at videolan.org
Wed Aug 27 19:27:29 CEST 2008
vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Wed Aug 27 19:21:35 2008 +0200| [5c68bdc5ff7041ca986fa59c3c5c6c042dba2dc4] | committer: Jean-Baptiste Kempf
Partially work around a picture link in libmpeg2.
It makes DVD (menu) usable (at least #1784, #1880).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5c68bdc5ff7041ca986fa59c3c5c6c042dba2dc4
---
modules/codec/libmpeg2.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules/codec/libmpeg2.c b/modules/codec/libmpeg2.c
index f0e3833..523a8ba 100644
--- a/modules/codec/libmpeg2.c
+++ b/modules/codec/libmpeg2.c
@@ -466,8 +466,13 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if( p_sys->p_info->discard_fbuf &&
p_sys->p_info->discard_fbuf->id )
{
- p_dec->pf_picture_unlink( p_dec,
- p_sys->p_info->discard_fbuf->id );
+
+ picture_t *p_old = p_sys->p_info->discard_fbuf->id;
+
+ if( p_old->i_status == RESERVED_PICTURE && p_old->date == 0 )
+ p_dec->pf_vout_buffer_del( p_dec, p_old );
+ else
+ p_dec->pf_picture_unlink( p_dec, p_old );
}
/* For still frames */
More information about the vlc-devel
mailing list