[vlc-commits] macosx: make sure that the video output is displayed in case the user requests a different item from the playlist (close #6041)

Felix Paul Kühne git at videolan.org
Sun Feb 19 23:31:19 CET 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Feb 19 22:02:42 2012 +0100| [de8a5786ee8bc1125a8faae7713477d459a65715] | committer: Jean-Baptiste Kempf

macosx: make sure that the video output is displayed in case the user requests a different item from the playlist (close #6041)
(cherry picked from commit fc9d9cca9bfb381d24aed8ec5d8b3a464cf31004)

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

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

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

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 3d524a7..5f006e9 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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];



More information about the vlc-commits mailing list