Commit d5f3c2a5 authored by Rémi Duraffort's avatar Rémi Duraffort

mosaic_bridge: add missing var_DelCallback (fix a race condition)

parent 998a2ef9
......@@ -272,6 +272,13 @@ static void Close( vlc_object_t * p_this )
sout_stream_t *p_stream = (sout_stream_t*)p_this;
sout_stream_sys_t *p_sys = p_stream->p_sys;
/* Delete the callbacks */
var_DelCallback( p_stream, CFG_PREFIX "height", HeightCallback, p_stream );
var_DelCallback( p_stream, CFG_PREFIX "width", WidthCallback, p_stream );
var_DelCallback( p_stream, CFG_PREFIX "alpha", alphaCallback, p_stream );
var_DelCallback( p_stream, CFG_PREFIX "x", xCallback, p_stream );
var_DelCallback( p_stream, CFG_PREFIX "y", yCallback, p_stream );
p_stream->p_sout->i_out_pace_nocontrol--;
free( p_sys->psz_id );
......
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