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

Fix initialization order

parent 5f9ea661
......@@ -108,7 +108,8 @@ static int Create( vlc_object_t *p_this )
config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,
p_filter->p_cfg );
p_sys->p_mask = NULL;
psz_string =
var_CreateGetStringCommand( p_filter, CFG_PREFIX "mask" );
if( psz_string && *psz_string )
{
LoadMask( p_filter, psz_string );
......@@ -116,11 +117,11 @@ static int Create( vlc_object_t *p_this )
msg_Err( p_filter, "Error while loading mask (%s).",
psz_string );
}
else
p_sys->p_mask = NULL;
free( psz_string );
vlc_mutex_init( &p_sys->mask_lock );
psz_string =
var_CreateGetStringCommand( p_filter, CFG_PREFIX "mask" );
var_AddCallback( p_filter, CFG_PREFIX "mask", MaskCallback,
p_filter );
p_filter->pf_video_filter = Filter;
......
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