Commit 932163e1 authored by Gildas Bazin's avatar Gildas Bazin

* modules/stream_out/transcode.c: don't segfault when video encoder or filter can't be opened.

parent 51d84ecb
...@@ -1388,6 +1388,7 @@ static int transcode_video_process( sout_stream_t *p_stream, ...@@ -1388,6 +1388,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
{ {
transcode_video_close( p_stream, id ); transcode_video_close( p_stream, id );
id->b_transcode = VLC_FALSE; id->b_transcode = VLC_FALSE;
return VLC_EGENERIC;
} }
/* Deinterlace */ /* Deinterlace */
...@@ -1446,6 +1447,10 @@ static int transcode_video_process( sout_stream_t *p_stream, ...@@ -1446,6 +1447,10 @@ static int transcode_video_process( sout_stream_t *p_stream,
msg_Dbg( p_stream, "no video filter found" ); msg_Dbg( p_stream, "no video filter found" );
vlc_object_detach( id->pp_filter[id->i_filter] ); vlc_object_detach( id->pp_filter[id->i_filter] );
vlc_object_destroy( id->pp_filter[id->i_filter] ); vlc_object_destroy( id->pp_filter[id->i_filter] );
transcode_video_close( p_stream, id );
id->b_transcode = VLC_FALSE;
return VLC_EGENERIC;
} }
} }
} }
......
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