Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-08-18 10:55:09 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-18 11:02:42 +0300
commit86cfcc524a74623421453f19adc0633c509bb467 (patch)
tree221a5e89a5ef294195a45ba29b9f12708b353313
parentb8daabc9d3fd3d214e855bfd02ac79a306ab4aca (diff)
d3d11: set devices to be multithreading-safe
-rw-r--r--decoder/LAVVideo/decoders/d3d11va.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/decoder/LAVVideo/decoders/d3d11va.cpp b/decoder/LAVVideo/decoders/d3d11va.cpp
index fa806086..c9266b32 100644
--- a/decoder/LAVVideo/decoders/d3d11va.cpp
+++ b/decoder/LAVVideo/decoders/d3d11va.cpp
@@ -205,6 +205,14 @@ enum_adapter:
goto fail;
}
+ // enable multithreaded protection
+ ID3D10Multithread *pMultithread = nullptr;
+ hr = pD3D11Device->QueryInterface(&pMultithread);
+ if (SUCCEEDED(hr)) {
+ pMultithread->SetMultithreadProtected(TRUE);
+ SafeRelease(&pMultithread);
+ }
+
// store adapter info
if (pDesc)
{