gl/cocoa: Disable hack for NSApp iteration with a special #define
authorSebastian Dröge <sebastian@centricular.com>
Sat, 10 Jan 2015 14:34:57 +0000 (15:34 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:52 +0000 (19:31 +0000)
commit50a11e4a77eb11be37d16e322342a29da636338b
treee9d28e1675c325a677e4c4e08e0e0c2f26b9beeb
parentc3f86ece4830563039594f686bf1657040453e4f
gl/cocoa: Disable hack for NSApp iteration with a special #define

The hack causes deadlocks and other interesting problems and it really
can only be fixed properly inside GLib. We will include a patch for
GLib in our builds for now that handles this, and hopefully at some
point GLib will also merge a proper solution.

A proper solution would first require to refactor the polling in
GMainContext to only provide a single fd, e.g. via epoll/kqueue
or a thread like the one added by our patch. Then this single
fd could be retrieved from the GMainContext and directly integrated
into a NSRunLoop.

https://bugzilla.gnome.org/show_bug.cgi?id=741450
https://bugzilla.gnome.org/show_bug.cgi?id=704374
gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m