diff options
author | Julien Isorce <julien.isorce@gmail.com> | 2014-07-03 09:00:32 +0100 |
---|---|---|
committer | Julien Isorce <julien.isorce@collabora.co.uk> | 2014-07-03 10:39:44 +0100 |
commit | 6e51790a11835490fa037bdaf996ffd316e74fb1 (patch) | |
tree | 5072d85cd34a398dc7bcd7374638b5b6266822bd /gst-libs | |
parent | 0258ec0273a253c9fb94a16856228b9cb1f67761 (diff) | |
download | gstreamer-plugins-bad-6e51790a11835490fa037bdaf996ffd316e74fb1.tar.gz |
glcocoa: initalize NSApp asap when using gst-launch
See https://bugzilla.gnome.org/show_bug.cgi?id=732661
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m index c40be8057..cd4585734 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); |