[vlc-commits] modplug: use var_Inherit when applicable.
Rémi Duraffort
git at videolan.org
Sun Jun 19 11:19:41 CEST 2011
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jun 19 11:12:05 2011 +0200| [a7ed79158470382bcd19d14743d2a6dd99de8f4a] | committer: Rémi Duraffort
modplug: use var_Inherit when applicable.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7ed79158470382bcd19d14743d2a6dd99de8f4a
---
modules/demux/mod.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/modules/demux/mod.c b/modules/demux/mod.c
index 7a16043..a62c331 100644
--- a/modules/demux/mod.c
+++ b/modules/demux/mod.c
@@ -207,23 +207,23 @@ static int Open( vlc_object_t *p_this )
settings.mFrequency = 44100;
settings.mResamplingMode = MODPLUG_RESAMPLE_FIR;
- if( var_CreateGetBool( p_demux, "mod-noisereduction" ) )
+ if( var_InheritBool( p_demux, "mod-noisereduction" ) )
settings.mFlags |= MODPLUG_ENABLE_NOISE_REDUCTION;
- if( var_CreateGetBool( p_demux, "mod-reverb" ) )
+ if( var_InheritBool( p_demux, "mod-reverb" ) )
settings.mFlags |= MODPLUG_ENABLE_REVERB;
- settings.mReverbDepth = var_CreateGetInteger( p_demux, "mod-reverb-level" );
- settings.mReverbDelay = var_CreateGetInteger( p_demux, "mod-reverb-delay" );
+ settings.mReverbDepth = var_InheritInteger( p_demux, "mod-reverb-level" );
+ settings.mReverbDelay = var_InheritInteger( p_demux, "mod-reverb-delay" );
- if( var_CreateGetBool( p_demux, "mod-megabass" ) )
+ if( var_InheritBool( p_demux, "mod-megabass" ) )
settings.mFlags |= MODPLUG_ENABLE_MEGABASS;
- settings.mBassAmount = var_CreateGetInteger( p_demux, "mod-megabass-level" );
- settings.mBassRange = var_CreateGetInteger( p_demux, "mod-megabass-range" );
+ settings.mBassAmount = var_InheritInteger( p_demux, "mod-megabass-level" );
+ settings.mBassRange = var_InheritInteger( p_demux, "mod-megabass-range" );
- if( var_CreateGetBool( p_demux, "mod-surround" ) )
+ if( var_InheritBool( p_demux, "mod-surround" ) )
settings.mFlags |= MODPLUG_ENABLE_SURROUND;
- settings.mSurroundDepth = var_CreateGetInteger( p_demux, "mod-surround-level" );
- settings.mSurroundDelay = var_CreateGetInteger( p_demux, "mod-surround-delay" );
+ settings.mSurroundDepth = var_InheritInteger( p_demux, "mod-surround-level" );
+ settings.mSurroundDelay = var_InheritInteger( p_demux, "mod-surround-delay" );
ModPlug_SetSettings( &settings );
More information about the vlc-commits
mailing list