[vlc-commits] equalizer: Fix bug in preset loading

Ron Wright git at videolan.org
Sat Jul 26 00:52:19 CEST 2014


vlc | branch: master | Ron Wright <logiconcepts819 at gmail.com> | Thu Jul 24 16:19:17 2014 +0000| [98125d8a124c2e76b5faac9a786d24bca9f329ce] | committer: Jean-Baptiste Kempf

equalizer: Fix bug in preset loading

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 );



More information about the vlc-commits mailing list