mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
[702/906] x11: fix segfault if the x11 backend is instantiated but not used
This commit is contained in:
parent
c6988cb064
commit
5818b015d6
1 changed files with 2 additions and 1 deletions
|
@ -213,6 +213,8 @@ static void
|
|||
gst_gl_window_x11_init (GstGLWindowX11 * window)
|
||||
{
|
||||
window->priv = GST_GL_WINDOW_X11_GET_PRIVATE (window);
|
||||
|
||||
g_cond_init (&window->cond_send_message);
|
||||
}
|
||||
|
||||
/* Must be called in the gl thread */
|
||||
|
@ -255,7 +257,6 @@ gst_gl_window_x11_create_context (GstGLWindow * window,
|
|||
|
||||
gst_gl_window_set_need_lock (GST_GL_WINDOW (window_x11), TRUE);
|
||||
|
||||
g_cond_init (&window_x11->cond_send_message);
|
||||
window_x11->running = TRUE;
|
||||
window_x11->visible = FALSE;
|
||||
window_x11->parent_win = 0;
|
||||
|
|
Loading…
Reference in a new issue