[vlc-commits] macosx: don't reload default video profile if already loaded

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


vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Sun Jul  2 15:18:14 2017 +0200| [5ce0643344274591e23df22f940fe1c157d35280] | committer: Jean-Baptiste Kempf

macosx: don't reload default video profile if already loaded

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

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

 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



More information about the vlc-commits mailing list