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

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

(cherry picked from commit 4bea3fe8)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent d87b2461
......@@ -389,12 +389,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;
}
......@@ -418,6 +418,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