[vlc-devel] [PATCH 1/6] equalizer: Fix bug in preset loading

Ronald Wright logiconcepts819 at gmail.com
Thu Jul 24 19:19:17 CEST 2014


---
 modules/audio_filter/equalizer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c
index 6603dc9..98a4a7e 100644
--- a/modules/audio_filter/equalizer.c
+++ b/modules/audio_filter/equalizer.c
@@ -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 );
-- 
1.9.1




More information about the vlc-devel mailing list