From 62ac6db6a0db4d3e6726f2d45e6404146e2ffc3c Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Thu, 3 Jul 2014 09:00:32 +0100 Subject: [PATCH] glcocoa: initalize NSApp asap when using gst-launch See https://bugzilla.gnome.org/show_bug.cgi?id=732661 --- gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m index c40be80575..cd45857340 100644 --- a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m @@ -161,7 +161,7 @@ gst_gl_context_cocoa_class_init (GstGLContextCocoaClass * klass) g_cond_init (&nsapp_cond); g_mutex_lock (&nsapp_lock); - g_timeout_add_seconds (0, gst_gl_window_cocoa_init_nsapp, NULL); + g_idle_add_full (G_PRIORITY_HIGH, gst_gl_window_cocoa_init_nsapp, NULL, NULL); end_time = g_get_monotonic_time () + 2 * 1000 * 1000; is_loop_running = g_cond_wait_until (&nsapp_cond, &nsapp_lock, end_time); g_mutex_unlock (&nsapp_lock);