* input_dec.c: Functions for the management of decoders
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_dec.c,v 1.4 2001/01/10 19:22:11 massiot Exp $
+ * $Id: input_dec.c,v 1.5 2001/01/12 14:49:55 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
input_DecodePES( p_es->p_decoder_fifo, p_es->p_pes );
}
- /* Destroy the lock and cond */
- vlc_cond_destroy( &p_es->p_decoder_fifo->data_wait );
- vlc_mutex_destroy( &p_es->p_decoder_fifo->data_lock );
-
/* Waiting for the thread to exit */
vlc_thread_join( p_es->thread_id );
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_programs.c,v 1.23 2001/01/10 19:22:11 massiot Exp $
+ * $Id: input_programs.c,v 1.24 2001/01/12 14:49:55 sam Exp $
*
* Authors:
*
if( p_es->p_decoder_fifo != NULL )
{
input_EndDecoder( p_input, p_es );
+
+ /* Destroy the lock and cond */
+ vlc_cond_destroy( &p_es->p_decoder_fifo->data_wait );
+ vlc_mutex_destroy( &p_es->p_decoder_fifo->data_lock );
+
free( p_es->p_decoder_fifo );
}