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

macosx: make sure we update the menu from the main thread only (fixes #5737)

(cherry picked from commit 8e3953e5)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 89601853
...@@ -259,7 +259,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var, ...@@ -259,7 +259,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
break; break;
case INPUT_EVENT_TITLE: case INPUT_EVENT_TITLE:
case INPUT_EVENT_CHAPTER: case INPUT_EVENT_CHAPTER:
[[VLCMain sharedInstance] updateMainMenu]; [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainMenu) withObject: nil waitUntilDone:NO];
break; break;
case INPUT_EVENT_CACHE: case INPUT_EVENT_CACHE:
[[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainWindow) withObject: nil waitUntilDone: NO]; [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainWindow) withObject: nil waitUntilDone: NO];
...@@ -277,7 +277,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var, ...@@ -277,7 +277,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
break; break;
case INPUT_EVENT_ITEM_META: case INPUT_EVENT_ITEM_META:
case INPUT_EVENT_ITEM_INFO: case INPUT_EVENT_ITEM_INFO:
[[VLCMain sharedInstance] updateMainMenu]; [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainMenu) withObject: nil waitUntilDone:NO];
[[VLCMain sharedInstance] updateName]; [[VLCMain sharedInstance] updateName];
[[VLCMain sharedInstance] updateInfoandMetaPanel]; [[VLCMain sharedInstance] updateInfoandMetaPanel];
break; break;
...@@ -287,7 +287,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var, ...@@ -287,7 +287,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
[[VLCMain sharedInstance] updateRecordState: var_GetBool( p_this, "record" )]; [[VLCMain sharedInstance] updateRecordState: var_GetBool( p_this, "record" )];
break; break;
case INPUT_EVENT_PROGRAM: case INPUT_EVENT_PROGRAM:
[[VLCMain sharedInstance] updateMainMenu]; [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainMenu) withObject: nil waitUntilDone:NO];
break; break;
case INPUT_EVENT_ITEM_EPG: case INPUT_EVENT_ITEM_EPG:
break; break;
......
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