dxva2: Return single software device for GetVideoProcessorDeviceGuids().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-09-17 14:25:36 +03:00 committed by Alexandre Julliard
parent 574fd3d3ef
commit 88f47823e1
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,5 @@
MODULE = dxva2.dll
IMPORTS = uuid
IMPORTS = uuid ole32
IMPORTLIB = dxva2
EXTRADLLFLAGS = -mno-cygwin

View File

@ -180,9 +180,15 @@ static HRESULT WINAPI device_manager_processor_service_RegisterVideoProcessorSof
static HRESULT WINAPI device_manager_processor_service_GetVideoProcessorDeviceGuids(
IDirectXVideoProcessorService *iface, const DXVA2_VideoDesc *video_desc, UINT *count, GUID **guids)
{
FIXME("%p, %p, %p, %p.\n", iface, video_desc, count, guids);
FIXME("%p, %p, %p, %p semi-stub.\n", iface, video_desc, count, guids);
return E_NOTIMPL;
if (!(*guids = CoTaskMemAlloc(sizeof(**guids))))
return E_OUTOFMEMORY;
memcpy(*guids, &DXVA2_VideoProcSoftwareDevice, sizeof(**guids));
*count = 1;
return S_OK;
}
static HRESULT WINAPI device_manager_processor_service_GetVideoProcessorRenderTargets(