Commit de8a5786 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

macosx: make sure that the video output is displayed in case the user requests...

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 fc9d9cca)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5f7f74bb
...@@ -267,7 +267,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var, ...@@ -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_META:
case INPUT_EVENT_ITEM_INFO: case INPUT_EVENT_ITEM_INFO:
[[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainMenu) withObject: nil waitUntilDone:NO]; [[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]; [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateInfoandMetaPanel) withObject: nil waitUntilDone:NO];
break; break;
case INPUT_EVENT_BOOKMARK: case INPUT_EVENT_BOOKMARK:
...@@ -1401,6 +1401,8 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1401,6 +1401,8 @@ unsigned int CocoaKeyToVLC( unichar i_key )
{ {
var_AddCallback( p_input, "intf-event", InputEvent, [VLCMain sharedInstance] ); var_AddCallback( p_input, "intf-event", InputEvent, [VLCMain sharedInstance] );
[o_mainmenu setRateControlsEnabled: YES]; [o_mainmenu setRateControlsEnabled: YES];
if ([self activeVideoPlayback] && [[o_mainwindow videoView] isHidden])
[o_mainwindow performSelectorOnMainThread:@selector(togglePlaylist:) withObject: nil waitUntilDone:NO];
} }
else else
[o_mainmenu setRateControlsEnabled: NO]; [o_mainmenu setRateControlsEnabled: NO];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment