gl/wayland: move roundtrip on show to window thread
authorMatthew Waters <matthew@centricular.com>
Thu, 4 Jan 2018 04:33:33 +0000 (15:33 +1100)
committerMatthew Waters <matthew@centricular.com>
Thu, 4 Jan 2018 04:39:36 +0000 (15:39 +1100)
commitb25413fb1c3e2e442bfe8d4627e9cf7a9d313735
treeaf58978c53be5e8d3836676601b090c35b65e0de
parent384d27002c9d3fc69c97451a5f12e2212cd550d4
gl/wayland: move roundtrip on show to window thread

This makes it thread safe and fixes a possible deadlock.

Keeping the roundtrip off the window thread will result in two different
threads call wl_display_dispatch_queue() for the same queue which
violates the assumption for _dispatch_queue()'s thread-safety
guarantees.

https://bugzilla.gnome.org/show_bug.cgi?id=788754
https://bugzilla.gnome.org/show_bug.cgi?id=792156
https://bugzilla.gnome.org/show_bug.cgi?id=758984
gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c
gst-libs/gst/gl/wayland/wayland_event_source.c