[Bug 750199] crashes in gst_gl_window_x11_set_window_handle()

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun May 31 22:16:14 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=750199

--- Comment #1 from Jan Schmidt <thaytan at noraisin.net> ---
diff --git a/gst-libs/gst/gl/x11/gstglwindow_x11.c
b/gst-libs/gst/gl/x11/gstglwindow_x11.c
index 4317d48..78b3fdc 100644
--- a/gst-libs/gst/gl/x11/gstglwindow_x11.c
+++ b/gst-libs/gst/gl/x11/gstglwindow_x11.c
@@ -316,6 +316,9 @@ gst_gl_window_x11_set_window_handle (GstGLWindow * window,
guintptr id)

   window_x11->parent_win = (Window) id;

+  if (window_x11->device == NULL)
+    window_x11->device = XOpenDisplay (NULL);
+
   XGetWindowAttributes (window_x11->device, window_x11->parent_win, &attr);

   XResizeWindow (window_x11->device, window_x11->internal_win_id,

Is enough to make things run, without being anything like a correct fix.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list