[vlc-devel] [PATCH 13/18] macosx: don't reload default audio profile if already loaded

Victorien Le Couviour--Tuffet victorien.lecouviour.tuffet at gmail.com
Tue Jul 4 10:01:12 CEST 2017


---
 modules/gui/macosx/VLCAudioEffectsWindowController.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCAudioEffectsWindowController.m b/modules/gui/macosx/VLCAudioEffectsWindowController.m
index 85518a885f..4b51c69791 100644
--- a/modules/gui/macosx/VLCAudioEffectsWindowController.m
+++ b/modules/gui/macosx/VLCAudioEffectsWindowController.m
@@ -300,7 +300,8 @@
     }
 
     [_profilePopup selectItemAtIndex:[defaults integerForKey:@"AudioEffectSelectedProfile"]];
-    [self profileSelectorAction:self];
+    if (i_old_profile_index || [[NSUserDefaults standardUserDefaults] integerForKey:@"AudioEffectSelectedProfile"])
+        [self profileSelectorAction:self];
 }
 
 #pragma mark -
-- 
2.13.1



More information about the vlc-devel mailing list