* transcode.c: transcoding stream output module
*****************************************************************************
* Copyright (C) 2003-2004 VideoLAN
- * $Id: transcode.c,v 1.76 2004/02/20 18:34:28 massiot Exp $
+ * $Id: transcode.c,v 1.77 2004/02/20 19:03:59 massiot Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
static void transcode_video_ffmpeg_close ( sout_stream_t *p_stream,
sout_stream_id_t *id )
{
+ if ( p_stream->p_sys->i_threads >= 1 )
+ {
+ p_stream->p_sys->b_die = 1;
+ vlc_thread_join( p_stream->p_sys );
+ vlc_mutex_destroy( &p_stream->p_sys->lock_out );
+ vlc_cond_destroy( &p_stream->p_sys->cond );
+ }
+
/* Close decoder */
if( id->ff_dec )
{
{
img_resample_close( id->p_vresample );
}
- if ( p_stream->p_sys->i_threads >= 1 )
- {
- p_stream->p_sys->b_die = 1;
- vlc_thread_join( p_stream->p_sys );
- vlc_mutex_destroy( &p_stream->p_sys->lock_out );
- vlc_cond_destroy( &p_stream->p_sys->cond );
- }
}
static int transcode_video_ffmpeg_process( sout_stream_t *p_stream,