]> git.sesse.net Git - vlc/commitdiff
Fix bug when equalizer-bands is not set. Coding style will be apply soon.
authorJérome Decoodt <djc@videolan.org>
Sat, 7 Aug 2004 22:50:28 +0000 (22:50 +0000)
committerJérome Decoodt <djc@videolan.org>
Sat, 7 Aug 2004 22:50:28 +0000 (22:50 +0000)
modules/gui/macosx/equalizer.m

index 6c04c182fd9b1010d00ebaf063e0b89fdedee587..bc5bfd51a92cd63099c06d930eb55fb0522d2abf 100644 (file)
@@ -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];