[760/906] x11: Always use the same display connection from the GL thread
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 16 Jul 2013 11:23:54 +0000 (13:23 +0200)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:36:59 +0000 (18:36 +0100)
The other display connection might be used by async calls from elsewhere
at the same time.

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

gst-libs/gst/gl/x11/gstglwindow_x11.c

index 582a4ff..7dc1cdb 100644 (file)
@@ -508,7 +508,7 @@ gst_gl_window_x11_draw_unlocked (GstGLWindow * window, guint width,
 
     XSendEvent (window_x11->device, window_x11->internal_win_id, FALSE,
         ExposureMask, &event);
-    XSync (window_x11->disp_send, FALSE);
+    XSync (window_x11->device, FALSE);
   }
 }