d3d11: Enable native multi-thread protection layer and make use of it
authorSeungha Yang <seungha@centricular.com>
Wed, 17 Mar 2021 14:53:04 +0000 (23:53 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 18 Mar 2021 16:37:37 +0000 (16:37 +0000)
commit872b7f503c49442e559f6a381416c6a84b76a3c6
tree46ec1b601004f672eef73d729475eabe24803b80
parent0d36dcab4e773a797f0d8c1e841b98044647690c
d3d11: Enable native multi-thread protection layer and make use of it

... instead of our own GRecMutex locking. In this way, any other
Direct3D11 client (MediaFoundation for example) can safely call
any Direct3D11 API even when we are sharing our Direct3D11 device
with others.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2092>
18 files changed:
gst-libs/gst/d3d11/gstd3d11device.c
gst-libs/gst/d3d11/gstd3d11memory.c
gst-libs/gst/d3d11/meson.build
sys/d3d11/gstd3d11compositor.cpp
sys/d3d11/gstd3d11convert.cpp
sys/d3d11/gstd3d11converter.cpp
sys/d3d11/gstd3d11decoder.cpp
sys/d3d11/gstd3d11deinterlace.cpp
sys/d3d11/gstd3d11desktopdup.cpp
sys/d3d11/gstd3d11overlaycompositor.cpp
sys/d3d11/gstd3d11pluginutils.cpp
sys/d3d11/gstd3d11videoprocessor.cpp
sys/d3d11/gstd3d11window.cpp
sys/d3d11/gstd3d11window_corewindow.cpp
sys/d3d11/gstd3d11window_dummy.cpp
sys/d3d11/gstd3d11window_swapchainpanel.cpp
sys/d3d11/gstd3d11window_win32.cpp
sys/mediafoundation/gstmfvideoenc.cpp