[vlc-devel] [PATCH 12/23] macosx: create variables before assigning them from video profile

Victorien Le Couviour--Tuffet victorien.lecouviour.tuffet at gmail.com
Thu Jun 29 14:24:19 CEST 2017


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

diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m
index 44bcf0e131..0bbb127906 100644
--- a/modules/gui/macosx/VLCVideoEffectsWindowController.m
+++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m
@@ -651,6 +651,8 @@
     if (b_filter_changed)
         var_SetString(p_playlist, "video-splitter", [tempString UTF8String]);
 
+    [self resetValues];
+
     /* try to set filter values on-the-fly and store them appropriately */
     // index 3 is deprecated
     [vci_si setVideoFilterProperty:"contrast" forFilter:"adjust" withValue: getWidgetFloatValue([items objectAtIndex:4])];
@@ -698,8 +700,6 @@
 
     [defaults setInteger:selectedProfile forKey:@"VideoEffectSelectedProfile"];
     [defaults synchronize];
-
-    [self resetValues];
 }
 
 - (void)addProfile:(id)sender
-- 
2.13.1



More information about the vlc-devel mailing list