Commit 83fa27fc authored by Thomas Guillem's avatar Thomas Guillem

transcode/video: don't close from process

In case of error, just set transcode to false. Everything will be closed later.
This fixes invalid usage of closed mutexes/conds/filters.
parent 1f8021e5
......@@ -673,22 +673,13 @@ void transcode_video_close( sout_stream_t *p_stream,
/* Close decoder */
if( id->p_decoder->p_module )
{
module_unneed( id->p_decoder, id->p_decoder->p_module );
id->p_decoder->p_module = NULL;
}
if( id->p_decoder->p_description )
{
vlc_meta_Delete( id->p_decoder->p_description );
id->p_decoder->p_description = NULL;
}
/* Close encoder */
if( id->p_encoder->p_module )
{
module_unneed( id->p_encoder, id->p_encoder->p_module );
id->p_encoder->p_module = NULL;
}
/* Close filters */
if( id->p_f_chain )
......@@ -837,7 +828,6 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
if( transcode_video_encoder_open( p_stream, id ) != VLC_SUCCESS )
{
picture_Release( p_pic );
transcode_video_close( p_stream, id );
id->b_transcode = false;
b_error = true;
continue;
......
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