Commit 20612265 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix crash occuring while initializing the info panel

It is not allowed to call [[VLCMain sharedInstance] info]
on the non-main-thread, as this might load and initialize the
info window.

(cherry picked from commit d87928927015fad3cdbcd0309bf3185c3672822f)
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent c4d471b0
......@@ -367,7 +367,9 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var,
[[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainWindow) withObject: nil waitUntilDone: NO];
break;
case INPUT_EVENT_STATISTICS:
[[[VLCMain sharedInstance] info] performSelectorOnMainThread:@selector(updateStatistics) withObject: nil waitUntilDone: NO];
dispatch_async(dispatch_get_main_queue(), ^{
[[[VLCMain sharedInstance] info] updateStatistics];
});
break;
case INPUT_EVENT_ES:
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