dxva2: Check input stream format in GetVideoProcessorDeviceGuids().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0070a00cc1
commit
b7c48c898c
|
@ -390,6 +390,11 @@ static HRESULT WINAPI device_manager_processor_service_GetVideoProcessorDeviceGu
|
|||
{
|
||||
FIXME("%p, %p, %p, %p semi-stub.\n", iface, video_desc, count, guids);
|
||||
|
||||
*count = 0;
|
||||
|
||||
if (!dxva_is_supported_stream_format(video_desc))
|
||||
return E_FAIL;
|
||||
|
||||
if (!(*guids = CoTaskMemAlloc(sizeof(**guids))))
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
|
|
|
@ -380,7 +380,6 @@ static void test_device_manager(void)
|
|||
ok(hr == E_FAIL, "Unexpected hr %#x, format %d.\n", hr, rt_unsupported_formats[i]);
|
||||
|
||||
hr = IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids(proc_service, &video_desc, &count, &guids);
|
||||
todo_wine
|
||||
ok(hr == E_FAIL, "Unexpected hr %#x.\n", hr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue