gl/cocoa: Improve the NSApplication initialization
authorSebastian Dröge <sebastian@centricular.com>
Mon, 29 Sep 2014 07:49:46 +0000 (10:49 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 29 Sep 2014 07:57:18 +0000 (10:57 +0300)
commit8d92b6a3649d32fb4f2896db11418ffb37cee3f3
tree4322342f36f22de07c69d4a4b7ed58943366b198
parent0cd19cbda3926b9f87659e47f25af484b66ec0f4
gl/cocoa: Improve the NSApplication initialization

This is only for non-Cocoa apps but previously caused a 2 second
waiting during startup for Cocoa apps. This is unacceptable.

Instead we now check a bit more extensive if something actually
runs on the GLib default main context, and if not don't even
bother waiting for something to happen from there.
gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m