Commit 63311381 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

hw:d3d11: Always request decoder support from the device unless forced for display

On Win7 D3D11 will not be used anymore unless forced manually as it doesn't
support this flag.

Fixes #19140 with automatic setup.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent e9e5fe7a
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment