Commit e345ccc4 authored by Tristan Matthews's avatar Tristan Matthews

input: fix use after free

parent cc64d3fc
......@@ -2413,7 +2413,6 @@ static int InputSourceInit( input_thread_t *p_input,
if( in->p_demux == NULL )
{
stream_Delete( p_stream );
if( vlc_object_alive( p_input ) )
{
msg_Err( p_input, "no suitable demux module for `%s/%s://%s'",
......@@ -2424,6 +2423,7 @@ static int InputSourceInit( input_thread_t *p_input,
_("The format of '%s' cannot be detected. "
"Have a look at the log for details."), psz_mrl );
}
stream_Delete( p_stream );
goto error;
}
assert( in->p_demux->pf_demux != NULL );
......
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