Commit c5085da7 authored by Thomas Guillem's avatar Thomas Guillem

chroma: chain: setup proxy callbacks on filter object

p_filter is already the parent of p_sys->p_video_filter. We don't need to touch
the grand parent.
parent 7f99bb74
......@@ -155,8 +155,7 @@ static int Activate( filter_t *p_filter, int (*pf_build)(filter_t *) )
{
/* Hum ... looks like this really isn't going to work. Too bad. */
if (p_sys->p_video_filter)
filter_DelProxyCallbacks( p_filter->obj.parent,
p_sys->p_video_filter,
filter_DelProxyCallbacks( p_filter, p_sys->p_video_filter,
RestartFilterCallback );
filter_chain_Delete( p_sys->p_chain );
free( p_sys );
......@@ -209,8 +208,7 @@ static void Destroy( vlc_object_t *p_this )
filter_t *p_filter = (filter_t *)p_this;
if (p_filter->p_sys->p_video_filter)
filter_DelProxyCallbacks( p_filter->obj.parent,
p_filter->p_sys->p_video_filter,
filter_DelProxyCallbacks( p_filter, p_filter->p_sys->p_video_filter,
RestartFilterCallback );
filter_chain_Delete( p_filter->p_sys->p_chain );
free( p_filter->p_sys );
......@@ -354,7 +352,7 @@ static int BuildFilterChain( filter_t *p_filter )
&fmt_mid, &fmt_mid );
if( p_filter->p_sys->p_video_filter )
{
filter_AddProxyCallbacks( p_filter->obj.parent,
filter_AddProxyCallbacks( p_filter,
p_filter->p_sys->p_video_filter,
RestartFilterCallback );
if (p_filter->p_sys->p_video_filter->pf_video_mouse != NULL)
......
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