[vlc-commits] macosx: audio effects: simplification

David Fuhrmann git at videolan.org
Mon Jun 9 13:33:56 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jun  8 14:05:54 2014 +0200| [24b9a2155fed0b4b2b83e856e97cf81764fbdbc2] | committer: David Fuhrmann

macosx: audio effects: simplification

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

 modules/gui/macosx/AudioEffects.m |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/gui/macosx/AudioEffects.m b/modules/gui/macosx/AudioEffects.m
index a3f80c8..ea887b0 100644
--- a/modules/gui/macosx/AudioEffects.m
+++ b/modules/gui/macosx/AudioEffects.m
@@ -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;



More information about the vlc-commits mailing list