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

Ron Wright git at videolan.org
Sat Jul 26 01:30:26 CEST 2014


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

equalizer: Fix bug in preset loading

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 98125d8a124c2e76b5faac9a786d24bca9f329ce)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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