d3d11: Protect ID3D11VideoContext with lock
authorSeungha Yang <seungha@centricular.com>
Thu, 3 Dec 2020 18:40:17 +0000 (03:40 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 3 Dec 2020 18:40:17 +0000 (03:40 +0900)
commit22990bb9ea7c37a557a9edb1c8549b794a079155
treec2e1b3309129553fea867ce24eefab25114fbc3e
parentcc44634422bf0633f5e57a6b15534ce639427440
d3d11: Protect ID3D11VideoContext with lock

Likewise d3d11 immediate context (i.e., ID3D11DeviceContext),
ID3D11VideoContext API is not thread safe. It must be protected therefore.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1856>
sys/d3d11/gstd3d11colorconvert.c
sys/d3d11/gstd3d11window.cpp