]> git.sesse.net Git - vlc/commitdiff
macosx: audio effects: simplification
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 8 Jun 2014 12:05:54 +0000 (14:05 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Mon, 9 Jun 2014 11:33:27 +0000 (13:33 +0200)
modules/gui/macosx/AudioEffects.m

index a3f80c832902580bc210d22712d400115682d318..ea887b014fc3f2df3a7d27de95fa7f0ba5b4cd94 100644 (file)
@@ -452,9 +452,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
 
     NSUInteger currentPresetIndex = 0;
     if (currentPreset && [currentPreset length] > 0) {
-        currentPresetIndex = [presets indexOfObjectPassingTest:^(id obj, NSUInteger idx, BOOL *stop) {
-            return [obj isEqualToString:currentPreset];
-        }];
+        currentPresetIndex = [presets indexOfObject:currentPreset];
 
         if (currentPresetIndex == NSNotFound)
             currentPresetIndex = [presets count] - 1;
@@ -662,7 +660,6 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
 
     // profile settings
     } else {
-
         if (value != NSOKButton) {
             [o_profile_pop selectItemAtIndex:[defaults integerForKey:@"AudioEffectSelectedProfile"]];
             return;