[vlc-commits] d3d11_fmt: don't use a lock if we are not hardware decoding

Steve Lhomme git at videolan.org
Fri Feb 7 15:58:56 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb  5 10:31:33 2020 +0100| [ba27563234c5b9b2122cfd0ec1bf78214fde2d44] | committer: Steve Lhomme

d3d11_fmt: don't use a lock if we are not hardware decoding

We won't need it for a local decoder device in the display.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba27563234c5b9b2122cfd0ec1bf78214fde2d44
---

 modules/video_chroma/d3d11_fmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index d39c2889bc..fbfa61a4cb 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -373,7 +373,7 @@ HRESULT D3D11_CreateDevice(vlc_object_t *obj, d3d11_handle_t *hd3d,
         }
     }
 
-    if (SUCCEEDED(hr))
+    if (hw_decoding && SUCCEEDED(hr))
     {
 #if defined(HAVE_ID3D11VIDEODECODER)
         out->context_mutex = CreateMutexEx( NULL, NULL, 0, SYNCHRONIZE );



More information about the vlc-commits mailing list