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

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


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

diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m
index f4e126158a..fb25640f87 100644
--- a/modules/gui/macosx/VLCVideoEffectsWindowController.m
+++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m
@@ -365,7 +365,8 @@
     }
 
     [_profilePopup selectItemAtIndex:[defaults integerForKey:@"VideoEffectSelectedProfile"]];
-    [self profileSelectorAction:self];
+    if (i_old_profile_index || [defaults integerForKey:@"VideoEffectSelectedProfile"])
+        [self profileSelectorAction:self];
 }
 
 - (void)setWidgetValue: (id)widget forOption: (char *)psz_option enabled: (bool)b_state
-- 
2.13.1



More information about the vlc-devel mailing list