Commit f6555654 authored by Clément Stenac's avatar Clément Stenac

Release the access in case of failure

parent 5adfe5b9
......@@ -999,6 +999,10 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
default:
msg_Err( p_stream, "cannot add this stream (unsupported "
"codec:%4.4s)", (char*)&p_fmt->i_codec );
if( p_access )
{
sout_AccessOutDelete( p_access );
}
free( id );
return 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