[vlc-commits] lua: remove superfluous equalizer preset code

Pierre Ynard git at videolan.org
Sun May 20 22:20:41 CEST 2012


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun May 20 22:15:30 2012 +0200| [40a9deba74473924ebc534e01055a9a820b40a18] | committer: Pierre Ynard

lua: remove superfluous equalizer preset code

This is already done by the equalizer module

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

 modules/lua/libs/equalizer.c |   11 -----------
 1 file changed, 11 deletions(-)

diff --git a/modules/lua/libs/equalizer.c b/modules/lua/libs/equalizer.c
index f02586e..79683fe 100644
--- a/modules/lua/libs/equalizer.c
+++ b/modules/lua/libs/equalizer.c
@@ -270,19 +270,8 @@ static int vlclua_equalizer_setpreset( lua_State *L )
             return 0;
         }
         free( psz_af );
-        char *newstr;
-        if( asprintf( &newstr , "%6.1f" , eqz_preset_10b[presetid].f_amp[0] ) == -1 )
-            return 0;
-        for ( int i = 1 ; i < 10 ; i++ )
-        {
-            if( asprintf( &newstr, "%s%6.1f",newstr ,eqz_preset_10b[presetid].f_amp[i]) == -1 )
-                return 0;
-        }
-        var_SetString( p_aout, "equalizer-bands",newstr );
-        var_SetFloat( p_aout, "equalizer-preamp", eqz_preset_10b[presetid].f_preamp );
         var_SetString( p_aout , "equalizer-preset" , preset_list[presetid] );
         vlc_object_release( p_aout );
-        free( newstr );
         return 1;
     }
     return 0;



More information about the vlc-commits mailing list