GNOME Bugzilla – Bug 741323
glimagesink: unstable behaviour on Mac OSX
Last modified: 2014-12-10 14:02:39 UTC
This simple pipeline does not always produce a video playing on the screen: gst-launch-1.0 videotestsrc ! glimagesink With git version it works halve of the time. This problem is present in the last released version (1.4.4). This race condition is not present when GST_DEBUG is enabled :-(
It looks like the problem is in: cocoa/gstglcontext_cocoa.m:223. dispatch_sync (dispatch_get_main_queue (), ... is never called (in the cases that it failes) so no window is created. I see in Apple's documentation [1] that dispatch_main() should be called from the applications main function to process blocks. [1]https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/dispatch_get_main_queue.3.html
I'm going to work on that soonish... see bug #741054 *** This bug has been marked as a duplicate of bug 741054 ***