mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
gl/window: marshall quit to the window thread
Fixes a possible deadlock where we're waiting for the window thread to quit but it never does.
This commit is contained in:
parent
89f613abf5
commit
a41bad561a
1 changed files with 9 additions and 1 deletions
|
@ -539,12 +539,20 @@ gst_gl_window_run (GstGLWindow * window)
|
|||
}
|
||||
|
||||
static void
|
||||
gst_gl_window_default_quit (GstGLWindow * window)
|
||||
window_default_quit_func (GstGLWindow * window)
|
||||
{
|
||||
gst_gl_display_remove_window (window->display, window);
|
||||
g_main_loop_quit (window->priv->loop);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_gl_window_default_quit (GstGLWindow * window)
|
||||
{
|
||||
gst_gl_window_send_message_async (window,
|
||||
(GstGLWindowCB) window_default_quit_func, gst_object_ref (window),
|
||||
gst_object_unref);
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_gl_window_quit:
|
||||
* @window: a #GstGLWindow
|
||||
|
|
Loading…
Reference in a new issue