Commit e00173c9 authored by Ron Wright's avatar Ron Wright Committed by Jean-Baptiste Kempf

equalizer: Fix bug in preset loading

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 98125d8a124c2e76b5faac9a786d24bca9f329ce)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ad532ca1
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment