[vlc-devel] commit: Remove unused includes and factorize. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Jun 19 09:22:56 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jun 18 19:57:52 2009 +0200| [5b6db1451bf5af1d23e14f715a6b53528d2c8cf2] | committer: Rémi Duraffort
Remove unused includes and factorize.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b6db1451bf5af1d23e14f715a6b53528d2c8cf2
---
modules/audio_filter/channel_mixer/mono.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/modules/audio_filter/channel_mixer/mono.c b/modules/audio_filter/channel_mixer/mono.c
index 5cf8cb7..087ad09 100644
--- a/modules/audio_filter/channel_mixer/mono.c
+++ b/modules/audio_filter/channel_mixer/mono.c
@@ -37,7 +37,6 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
-#include <vlc_es.h>
#include <vlc_block.h>
#include <vlc_filter.h>
#include <vlc_aout.h>
@@ -381,14 +380,9 @@ static int OpenFilter( vlc_object_t *p_this )
if( p_sys == NULL )
return VLC_EGENERIC;
- var_Create( p_this, MONO_CFG "downmix",
- VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
- p_sys->b_downmix = var_GetBool( p_this, MONO_CFG "downmix" );
-
- var_Create( p_this, MONO_CFG "channel",
- VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
+ p_sys->b_downmix = var_CreateGetBool( p_this, MONO_CFG "downmix" );
p_sys->i_channel_selected =
- (unsigned int) var_GetInteger( p_this, MONO_CFG "channel" );
+ (unsigned int) var_CreateGetInteger( p_this, MONO_CFG "channel" );
if( p_sys->b_downmix )
{
More information about the vlc-devel
mailing list