[vlc-devel] commit: Don't use var_CreateGetString to create a variable. ( Rémi Duraffort )

git version control git at videolan.org
Wed Aug 20 20:10:49 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Aug 20 20:09:48 2008 +0200| [1a4fe53c651b21f34717ed54d31f75c44ac80343] | committer: Rémi Duraffort 

Don't use var_CreateGetString to create a variable.

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

 modules/audio_filter/equalizer.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c
index 228db66..de34760 100644
--- a/modules/audio_filter/equalizer.c
+++ b/modules/audio_filter/equalizer.c
@@ -358,10 +358,8 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate )
         }
     }
 
-    char *psz_tmp = var_CreateGetString( p_aout,"equalizer-bands" );
-    free( psz_tmp );
-    psz_tmp = var_CreateGetString( p_aout, "equalizer-preset" );
-    free( psz_tmp );
+    var_Create( p_aout, "equalizer-bands", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
+    var_Create( p_aout, "equalizer-preset", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
 
     p_sys->b_2eqz = var_CreateGetBool( p_aout, "equalizer-2pass" );
 




More information about the vlc-devel mailing list