Commit 4bea3fe8 authored by ivoire's avatar ivoire
Browse files

Move the add/del_callback call (to be sure to have the needed ressources).

parent 649a43d0
......@@ -388,12 +388,12 @@ static int Init( vout_thread_t *p_vout )
return VLC_EGENERIC;
}
var_AddCallback( p_vout, "deinterlace-mode", FilterCallback, NULL );
vout_filter_AllocateDirectBuffers( p_vout, VOUT_MAX_PICTURES );
vout_filter_AddChild( p_vout, p_vout->p_sys->p_vout, MouseEvent );
var_AddCallback( p_vout, "deinterlace-mode", FilterCallback, NULL );
return VLC_SUCCESS;
}
......@@ -417,6 +417,8 @@ static void End( vout_thread_t *p_vout )
{
vout_sys_t *p_sys = p_vout->p_sys;
var_DelCallback( p_vout, "deinterlace-mode", FilterCallback, NULL );
if( p_sys->p_vout )
{
vout_filter_DelChild( p_vout, p_sys->p_vout, MouseEvent );
......
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