[vlc-commits] macosx: fix show fs controller hotkey (default i)

David Fuhrmann git at videolan.org
Sat May 10 13:51:43 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Fri May  9 16:33:57 2014 +0200| [f695ca65847cb6c83c6de804774137dca8e57157] | committer: David Fuhrmann

macosx: fix show fs controller hotkey (default i)

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

 modules/gui/macosx/intf.m |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 005390a..79cad6c 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -452,14 +452,15 @@ static int ShowController(vlc_object_t *p_this, const char *psz_variable,
                      vlc_value_t old_val, vlc_value_t new_val, void *param)
 {
     intf_thread_t * p_intf = VLCIntf;
-    if (p_intf && p_intf->p_sys) {
+    if (p_intf) {
         playlist_t * p_playlist = pl_Get(p_intf);
         BOOL b_fullscreen = var_GetBool(p_playlist, "fullscreen");
-        if (strcmp(psz_variable, "intf-toggle-fscontrol") || b_fullscreen)
+        if (b_fullscreen)
             [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(showFullscreenController) withObject:nil waitUntilDone:NO];
-        else
+        else if (!strcmp(psz_variable, "intf-show"))
             [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(showMainWindow) withObject:nil waitUntilDone:NO];
     }
+
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list