[vlc-devel] [PATCH] hw:d3d11: Always request decoder support from the device unless forced for display
Steve Lhomme
robux4 at videolabs.io
Wed Nov 29 18:26:42 CET 2017
On Win7 D3D11 will not be used anymore unless forced manually as it doesn't
support this flag.
Fixes #19140 with automatic setup.
--
deprecates https://patches.videolan.org/patch/18923/
---
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 2d6e696c20..f9b4130ee7 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -167,7 +167,7 @@ HRESULT D3D11_CreateDevice(vlc_object_t *obj, d3d11_handle_t *hd3d,
HRESULT hr = E_NOTIMPL;
UINT creationFlags = 0;
- if (hw_decoding)
+ if (hw_decoding || !obj->obj.force)
creationFlags |= D3D11_CREATE_DEVICE_VIDEO_SUPPORT;
#if !defined(NDEBUG)
--
2.14.2
More information about the vlc-devel
mailing list