Commit d8792892 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.
parent 52ed5f49
......@@ -371,7 +371,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