[vlc-commits] equalizer: fix a wrong comparison

Adrien Maglo git at videolan.org
Sun Jun 29 23:26:09 CEST 2014


vlc/vlc-2.2 | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Jun 24 15:12:46 2014 +0200| [a6bd710bfbd54add1d5defe1c65ef06a1ab6d6de] | committer: Jean-Baptiste Kempf

equalizer: fix a wrong comparison

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

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

 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 f8ca033..6603dc9 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