[vlc-commits] macosx: create variables before assigning them from video profile

Victorien Le Couviour--Tuffet git at videolan.org
Thu Jul 13 11:24:19 CEST 2017


vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Tue Jun 27 10:30:10 2017 +0200| [a4c86f1c6b3fbaeb6ae9cbe9dedddedb8a8b56ac] | committer: Jean-Baptiste Kempf

macosx: create variables before assigning them from video profile

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 0df5d87916..1fa610283f 100644
--- a/modules/gui/macosx/VLCVideoEffectsWindowController.m
+++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m
@@ -638,6 +638,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])];
@@ -685,8 +687,6 @@
 
     [defaults setInteger:selectedProfile forKey:@"VideoEffectSelectedProfile"];
     [defaults synchronize];
-
-    [self resetValues];
 }
 
 - (void)addProfile:(id)sender



More information about the vlc-commits mailing list