Commit 5da43874 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix use after free

parent dbdbe005
...@@ -423,8 +423,9 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id ) ...@@ -423,8 +423,9 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
{ {
VLC_UNUSED(p_stream); VLC_UNUSED(p_stream);
sout_access_out_t *p_access = id->p_mux->p_access; sout_access_out_t *p_access = id->p_mux->p_access;
sout_MuxDelete( id->p_mux );
sout_MuxDeleteStream( id->p_mux, id->p_input ); sout_MuxDeleteStream( id->p_mux, id->p_input );
sout_MuxDelete( id->p_mux );
if( !sout_AccessOutCanControlPace( p_access ) ) if( !sout_AccessOutCanControlPace( p_access ) )
p_stream->p_sout->i_out_pace_nocontrol--; p_stream->p_sout->i_out_pace_nocontrol--;
sout_AccessOutDelete( p_access ); sout_AccessOutDelete( p_access );
......
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