From: Jérome Decoodt Date: Sat, 7 Aug 2004 22:50:28 +0000 (+0000) Subject: Fix bug when equalizer-bands is not set. Coding style will be apply soon. X-Git-Tag: 0.8.0~715 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=aa61785a30dbd9c019a6e0160657d1eac450d777;p=vlc Fix bug when equalizer-bands is not set. Coding style will be apply soon. --- diff --git a/modules/gui/macosx/equalizer.m b/modules/gui/macosx/equalizer.m index 6c04c182fd..bc5bfd51a9 100644 --- a/modules/gui/macosx/equalizer.m +++ b/modules/gui/macosx/equalizer.m @@ -311,6 +311,8 @@ static char *preset_list[] = { b_2p = var_GetBool( p_aout, "equalizer-2pass" ); vlc_object_release( p_aout ); } + if( !p ) + p = "0 0 0 0 0 0 0 0 0 0"; /* Set the preamp slider */ [o_slider_preamp setFloatValue: preamp];