Commit abfc0650 authored by Laurent Aimar's avatar Laurent Aimar

Fixed record DelEs function.

It fixes some segfault when stopping recording.
parent c691d369
......@@ -210,12 +210,13 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
if( id->p_first )
block_ChainRelease( id->p_first );
es_format_Clean( &id->fmt );
assert( !id->id || p_sys->p_out );
if( id->id )
sout_StreamIdDel( p_sys->p_out, id->id );
es_format_Clean( &id->fmt );
TAB_REMOVE( p_sys->i_id, p_sys->id, id );
if( p_sys->i_id <= 0 )
......
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