]> git.sesse.net Git - vlc/commitdiff
macosx: make sure that the video output is displayed in case the user requests a...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 19 Feb 2012 21:02:42 +0000 (22:02 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 19 Feb 2012 21:02:42 +0000 (22:02 +0100)
modules/gui/macosx/intf.m

index 3d524a70a0dd4503c41cfa5ce6b572b935e4f3d0..5f006e9b045fe920f69de9738a9e08bc8b88e3ec 100644 (file)
@@ -267,7 +267,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
         case INPUT_EVENT_ITEM_META:
         case INPUT_EVENT_ITEM_INFO:
             [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainMenu) withObject: nil waitUntilDone:NO];
-            [[VLCMain sharedInstance] updateName];
+            [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateName) withObject: nil waitUntilDone:NO];
             [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateInfoandMetaPanel) withObject: nil waitUntilDone:NO];
             break;
         case INPUT_EVENT_BOOKMARK:
@@ -1401,6 +1401,8 @@ unsigned int CocoaKeyToVLC( unichar i_key )
     {
         var_AddCallback( p_input, "intf-event", InputEvent, [VLCMain sharedInstance] );
         [o_mainmenu setRateControlsEnabled: YES];
+        if ([self activeVideoPlayback] && [[o_mainwindow videoView] isHidden])
+            [o_mainwindow performSelectorOnMainThread:@selector(togglePlaylist:) withObject: nil waitUntilDone:NO];
     }
     else
         [o_mainmenu setRateControlsEnabled: NO];