d3d11window_win32: Create internal window on parent window's thread
authorSeungha Yang <seungha@centricular.com>
Tue, 26 May 2020 18:50:57 +0000 (03:50 +0900)
committerSeungha Yang <seungha@centricular.com>
Tue, 26 May 2020 20:08:48 +0000 (05:08 +0900)
commitbd8a415747c58e35a9caa9bfe40c2aac8f8101b1
treeb78552849be65e4e87b602c8e84d718f09ac33e0
parentafe941249ece4263e7b206599c8ba95dc61f6e9a
d3d11window_win32: Create internal window on parent window's thread

If parent and child windows are running on different thread,
there is always a chance to cause deadlock as DefWindowProc() call
from child window thread might be blocked until the message
is handled by parent's window procedure.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1299>
sys/d3d11/gstd3d11window_win32.cpp