From 5818b015d6de6335232fcc5c07ed12d32dee6a66 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 12 Jun 2013 23:21:16 +1000 Subject: [PATCH] [702/906] x11: fix segfault if the x11 backend is instantiated but not used --- gst-libs/gst/gl/x11/gstglwindow_x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/x11/gstglwindow_x11.c b/gst-libs/gst/gl/x11/gstglwindow_x11.c index c52a334..6fa7598 100644 --- a/gst-libs/gst/gl/x11/gstglwindow_x11.c +++ b/gst-libs/gst/gl/x11/gstglwindow_x11.c @@ -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; -- 2.7.4