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

Don't use var_CreateGet oly to Create the variable.

parent af630314
......@@ -363,7 +363,7 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate )
p_sys->b_2eqz = var_CreateGetBool( p_aout, "equalizer-2pass" );
var_CreateGetFloat( p_aout, "equalizer-preamp" );
var_Create( p_aout, "equalizer-preamp", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT );
/* Get initial values */
var_Get( p_aout, "equalizer-preset", &val1 );
......
......@@ -209,9 +209,8 @@ static int SpatInit( aout_filter_t *p_filter )
aout_instance_t *p_aout = (aout_instance_t *)p_filter->p_parent;
for( i = 0; i < 5 ; i ++ )
{
var_CreateGetFloatCommand( p_aout, psz_control_names[i] );
}
var_Create( p_aout, psz_control_names[i], VLC_VAR_FLOAT
| VLC_VAR_DOINHERIT | VLC_VAR_ISCOMMAND );
/* Get initial values */
var_Get( p_aout, psz_control_names[0], &val1 );
......
......@@ -119,9 +119,9 @@ static int Create( vlc_object_t *p_this )
config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,
p_filter->p_cfg );
var_CreateGetIntegerCommand( p_filter, CFG_PREFIX "color" );
var_CreateGetIntegerCommand( p_filter, CFG_PREFIX "similaritythres" );
var_CreateGetIntegerCommand( p_filter, CFG_PREFIX "saturationthres" );
var_Create( p_filter, CFG_PREFIX "color", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT | VLC_VAR_ISCOMMAND );
var_Create( p_filter, CFG_PREFIX "similaritythres", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT | VLC_VAR_ISCOMMAND );
var_Create( p_filter, CFG_PREFIX "saturationthes", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT | VLC_VAR_ISCOMMAND );
/* Allocate structure */
p_filter->p_sys = malloc( sizeof( filter_sys_t ) );
......
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