[vlc-commits] aout: remove redumdant variable creation for replay gain

Rémi Denis-Courmont git at videolan.org
Tue Aug 9 21:19:37 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug  9 22:19:15 2011 +0300| [f2aef005787dee281a62b2dd6af1e09bf377ace0] | committer: Rémi Denis-Courmont

aout: remove redumdant variable creation for replay gain

Those variables are inherited and they have no callbacks.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2aef005787dee281a62b2dd6af1e09bf377ace0
---

 src/audio_output/input.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/src/audio_output/input.c b/src/audio_output/input.c
index 992a926..dd3cee3 100644
--- a/src/audio_output/input.c
+++ b/src/audio_output/input.c
@@ -214,22 +214,6 @@ int aout_InputNew( audio_output_t * p_aout,
                                        &p_input->replay_gain));
     free (gain);
 
-    if( var_Type( p_aout, "audio-replay-gain-preamp" ) == 0 )
-    {
-        var_Create( p_aout, "audio-replay-gain-preamp",
-                    VLC_VAR_FLOAT | VLC_VAR_DOINHERIT );
-    }
-    if( var_Type( p_aout, "audio-replay-gain-default" ) == 0 )
-    {
-        var_Create( p_aout, "audio-replay-gain-default",
-                    VLC_VAR_FLOAT | VLC_VAR_DOINHERIT );
-    }
-    if( var_Type( p_aout, "audio-replay-gain-peak-protection" ) == 0 )
-    {
-        var_Create( p_aout, "audio-replay-gain-peak-protection",
-                    VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
-    }
-
     psz_filters = var_GetString( p_aout, "audio-filter" );
     psz_visual = var_GetString( p_aout, "audio-visual");
     psz_scaletempo = var_InheritBool( p_aout, "audio-time-stretch" ) ? strdup( "scaletempo" ) : NULL;



More information about the vlc-commits mailing list