]> git.sesse.net Git - vlc/commitdiff
* DeleteDecoderConfig wasn't freeing (anymore) the packets left in the
authorGildas Bazin <gbazin@videolan.org>
Fri, 30 Nov 2001 22:52:40 +0000 (22:52 +0000)
committerGildas Bazin <gbazin@videolan.org>
Fri, 30 Nov 2001 22:52:40 +0000 (22:52 +0000)
    decoder fifo. This bug was creating an io_vec starving on title change
    when playing DVDs.

src/input/input_dec.c

index 3ccfeb712b1e295fd593b56d2fd3def78c1e4e96..c983ea57a73430737277946125027e344c27e8d5 100644 (file)
@@ -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 );