From a4c86f1c6b3fbaeb6ae9cbe9dedddedb8a8b56ac Mon Sep 17 00:00:00 2001 From: Victorien Le Couviour--Tuffet Date: Tue, 27 Jun 2017 10:30:10 +0200 Subject: [PATCH] macosx: create variables before assigning them from video profile Signed-off-by: Jean-Baptiste Kempf --- 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 -- 2.11.4.GIT