From a1b3ffaedfc8e91a6e8146790204091601f4a70f Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Tue, 30 Sep 2003 20:36:46 +0000 Subject: [PATCH] * include/vlc_block_helper.h, modules/codec/a52.c: same as thedj ;) --- include/vlc_block_helper.h | 15 +-------------- modules/codec/a52.c | 6 +++--- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/include/vlc_block_helper.h b/include/vlc_block_helper.h index 8eaa4cc2d9..fe42def3be 100644 --- a/include/vlc_block_helper.h +++ b/include/vlc_block_helper.h @@ -2,7 +2,7 @@ * vlc_block_helper.h: Helper functions for data blocks management. ***************************************************************************** * Copyright (C) 2003 VideoLAN - * $Id: vlc_block_helper.h,v 1.1 2003/09/30 20:23:03 gbazin Exp $ + * $Id: vlc_block_helper.h,v 1.2 2003/09/30 20:36:46 gbazin Exp $ * * Authors: Gildas Bazin * @@ -61,19 +61,6 @@ static inline block_t *block_BytestreamFlush( block_bytestream_t *p_bytestream) return p_bytestream->p_chain; } -static inline mtime_t block_BytestreamPTS( block_bytestream_t *p_bytestream ) -{ - while( p_bytestream->p_chain != p_bytestream->p_block ) - { - block_t *p_next; - p_next = p_bytestream->p_chain->p_next; - p_bytestream->p_chain->pf_release( p_bytestream->p_chain ); - p_bytestream->p_chain = p_next; - } - - return p_bytestream->p_chain; -} - static inline int block_SkipByte( block_bytestream_t *p_bytestream ) { /* Most common case first */ diff --git a/modules/codec/a52.c b/modules/codec/a52.c index 3f0713b2a1..55cf0c941c 100644 --- a/modules/codec/a52.c +++ b/modules/codec/a52.c @@ -2,7 +2,7 @@ * a52.c: A/52 basic parser ***************************************************************************** * Copyright (C) 2001-2002 VideoLAN - * $Id: a52.c,v 1.24 2003/09/30 20:23:03 gbazin Exp $ + * $Id: a52.c,v 1.25 2003/09/30 20:36:46 gbazin Exp $ * * Authors: Stéphane Borel * Christophe Massiot @@ -361,7 +361,7 @@ static int EndDecoder( decoder_t *p_dec ) sout_InputDelete( p_dec->p_sys->p_sout_input ); } - if( p_dec->p_sys->p_chain ) block_ChainRelease( p_sys->p_chain ); + if( p_dec->p_sys->p_chain ) block_ChainRelease( p_dec->p_sys->p_chain ); free( p_dec->p_sys ); @@ -534,7 +534,7 @@ static int SendOutBuffer( decoder_t *p_dec ) p_sys->p_aout_buffer = NULL; } - p_dec->p_sys->p_out_buffer = NULL; + p_sys->p_out_buffer = NULL; return VLC_SUCCESS; } -- 2.39.2