From: Matthew Waters Date: Tue, 2 Jul 2013 08:33:42 +0000 (+1000) Subject: [724/906] wayland: make reentrant X-Git-Tag: 1.19.3~511^2~1989^2~1817 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17e4fe41d3e199fcfb148db96d7aad5ac809a215;p=platform%2Fupstream%2Fgstreamer.git [724/906] wayland: make reentrant https://bugzilla.gnome.org/show_bug.cgi?id=703445 --- diff --git a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c index ad0d603..7fe27d3 100644 --- a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c +++ b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c @@ -637,11 +637,11 @@ gst_gl_window_wayland_egl_send_message (GstGLWindow * window, g_mutex_init (&message.lock); g_cond_init (&message.cond); - g_mutex_lock (&message.lock); - g_main_context_invoke (window_egl->main_context, (GSourceFunc) _run_message, &message); + g_mutex_lock (&message.lock); + while (!message.fired) g_cond_wait (&message.cond, &message.lock); g_mutex_unlock (&message.lock);