[vlc-devel] commit: Don't use var_CreateGet oly to Create the variable. ( Rémi Duraffort )
git version control
git at videolan.org
Sun Nov 2 11:45:55 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Nov 2 11:36:10 2008 +0100| [d5f2ec0de2c051dc45aed4a24cb13b10938c0c24] | committer: Rémi Duraffort
Don't use var_CreateGet oly to Create the variable.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5f2ec0de2c051dc45aed4a24cb13b10938c0c24
---
modules/audio_filter/equalizer.c | 2 +-
modules/audio_filter/spatializer/spatializer.cpp | 5 ++---
modules/video_filter/colorthres.c | 6 +++---
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c
index ae456f3..ae70807 100644
--- a/modules/audio_filter/equalizer.c
+++ b/modules/audio_filter/equalizer.c
@@ -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 );
diff --git a/modules/audio_filter/spatializer/spatializer.cpp b/modules/audio_filter/spatializer/spatializer.cpp
index 672d4a1..5375f7c 100644
--- a/modules/audio_filter/spatializer/spatializer.cpp
+++ b/modules/audio_filter/spatializer/spatializer.cpp
@@ -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 );
diff --git a/modules/video_filter/colorthres.c b/modules/video_filter/colorthres.c
index fa8d722..9aefc96 100644
--- a/modules/video_filter/colorthres.c
+++ b/modules/video_filter/colorthres.c
@@ -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 ) );
More information about the vlc-devel
mailing list