glwindow/win32: Fix possible deadlock around key/mouse event handling
authorSeungha Yang <seungha@centricular.com>
Thu, 2 Jul 2020 13:33:44 +0000 (22:33 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 8 Jul 2020 13:41:07 +0000 (13:41 +0000)
commit55f10f31d4dc4d17291f9a07f3425d8f85b4d520
tree443330725dd30aad6f1c2e89d88d437184fc4d0a
parent595ca4630193a2d200eaf28cd5b399392c984bd9
glwindow/win32: Fix possible deadlock around key/mouse event handling

Calling gst_gl_window_send_{key,mouse}_event() from GstGLContext
thread might cause a deadlock. Instead, use the dedicated event handling
thread in GstGLDisplay.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/721>
gst-libs/gst/gl/win32/gstglwindow_win32.c