Commit a278da2f authored by Gildas Bazin's avatar Gildas Bazin

 * DeleteDecoderConfig wasn't freeing (anymore) the packets left in the
    decoder fifo. This bug was creating an io_vec starving on title change
    when playing DVDs.
parent ab4905f1
......@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.17 2001/11/28 15:08:06 massiot Exp $
* $Id: input_dec.c,v 1.18 2001/11/30 22:52:40 gbazin Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
......@@ -275,7 +275,6 @@ static decoder_config_t * CreateDecoderConfig( input_thread_t * p_input,
static void DeleteDecoderConfig( decoder_config_t * p_config )
{
/* Free all packets still in the decoder fifo. */
#if 0
while( !DECODER_FIFO_ISEMPTY( *p_config->p_decoder_fifo ) )
{
p_config->p_decoder_fifo->pf_delete_pes(
......@@ -283,7 +282,6 @@ static void DeleteDecoderConfig( decoder_config_t * p_config )
DECODER_FIFO_START( *p_config->p_decoder_fifo ) );
DECODER_FIFO_INCSTART( *p_config->p_decoder_fifo );
}
#endif
/* Destroy the lock and cond */
vlc_cond_destroy( &p_config->p_decoder_fifo->data_wait );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment