Commit 6e51790a authored by Julien Isorce's avatar Julien Isorce Committed by Julien Isorce

glcocoa: initalize NSApp asap when using gst-launch

See https://bugzilla.gnome.org/show_bug.cgi?id=732661
parent 0258ec02
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment