diff options
author | Seungha Yang <seungha@centricular.com> | 2021-03-17 23:53:04 +0900 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2021-03-18 16:37:37 +0000 |
commit | 872b7f503c49442e559f6a381416c6a84b76a3c6 (patch) | |
tree | 46ec1b601004f672eef73d729475eabe24803b80 /sys/d3d11/gstd3d11window_dummy.cpp | |
parent | 0d36dcab4e773a797f0d8c1e841b98044647690c (diff) | |
download | gstreamer-plugins-bad-872b7f503c49442e559f6a381416c6a84b76a3c6.tar.gz |
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>
Diffstat (limited to 'sys/d3d11/gstd3d11window_dummy.cpp')
-rw-r--r-- | sys/d3d11/gstd3d11window_dummy.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/d3d11/gstd3d11window_dummy.cpp b/sys/d3d11/gstd3d11window_dummy.cpp index f3dc4f54b..300f4ffce 100644 --- a/sys/d3d11/gstd3d11window_dummy.cpp +++ b/sys/d3d11/gstd3d11window_dummy.cpp @@ -116,8 +116,6 @@ gst_d3d11_window_dummy_prepare (GstD3D11Window * window, window->render_info.colorimetry.transfer = GST_VIDEO_TRANSFER_BT709; window->render_info.colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255; - gst_d3d11_device_lock (window->device); - #if (GST_D3D11_DXGI_HEADER_VERSION >= 4) { const GstDxgiColorSpace *in_color_space = @@ -194,8 +192,6 @@ gst_d3d11_window_dummy_prepare (GstD3D11Window * window, goto error; } - gst_d3d11_device_unlock (window->device); - return TRUE; error: |