From 872b7f503c49442e559f6a381416c6a84b76a3c6 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Wed, 17 Mar 2021 23:53:04 +0900 Subject: 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: --- sys/d3d11/gstd3d11window_dummy.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/d3d11/gstd3d11window_dummy.cpp') 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: -- cgit v1.2.1