[724/906] wayland: make reentrant

https://bugzilla.gnome.org/show_bug.cgi?id=703445
This commit is contained in:
Matthew Waters 2013-07-02 18:33:42 +10:00
parent ba19813816
commit 96deb2fba3

View file

@ -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);