]> git.sesse.net Git - vlc/commitdiff
equalizer: Fix bug in preset loading
authorRon Wright <logiconcepts819@gmail.com>
Thu, 24 Jul 2014 16:19:17 +0000 (16:19 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 25 Jul 2014 22:49:55 +0000 (00:49 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_filter/equalizer.c

index 6603dc9aa966f1dd27643a8e6a94a49cdab8dfed..98a4a7ee46bfb692639d28d2b25e0805a6b4fd13 100644 (file)
@@ -345,7 +345,7 @@ static int EqzInit( filter_t *p_filter, int i_rate )
     var_Get( p_aout, "equalizer-preamp", &val3 );
 
     /* Load the preset only if equalizer-bands is not set. */
-    if ( val2.psz_string != NULL && *val2.psz_string != '\0' )
+    if ( val2.psz_string == NULL || *val2.psz_string == '\0' )
         PresetCallback( VLC_OBJECT( p_aout ), NULL, val1, val1, p_sys );
     free( val1.psz_string );
     BandsCallback(  VLC_OBJECT( p_aout ), NULL, val2, val2, p_sys );