osxvideosink: Disable hack for NSApp iteration with a special #define
authorSebastian Dröge <sebastian@centricular.com>
Sat, 10 Jan 2015 14:51:16 +0000 (15:51 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 10 Jan 2015 14:54:22 +0000 (15:54 +0100)
commit81e15d22c02b14b2a58436b0dd8d9d58048ff94f
tree7ceab2d34129c5977bea41137a36d7fa2e004495
parent0dd46accf6d282ff07065852bd91c85c78af3394
osxvideosink: 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
sys/osxvideo/cocoawindow.h
sys/osxvideo/cocoawindow.m
sys/osxvideo/osxvideosink.h
sys/osxvideo/osxvideosink.m