winegstreamer: Return S_OK from H264 decoder GetAttributes.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45988
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47084
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49715
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52183
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2022-03-14 12:09:04 +01:00 committed by Alexandre Julliard
parent 8a52d3e93f
commit 2d7c37da49
2 changed files with 1 additions and 3 deletions

View File

@ -6665,9 +6665,7 @@ static void test_h264_decoder(void)
goto failed;
hr = IMFTransform_GetAttributes(transform, &attributes);
todo_wine
ok(hr == S_OK, "GetAttributes returned %#lx\n", hr);
if (hr != S_OK) MFCreateAttributes(&attributes, 0);
hr = IMFAttributes_SetUINT32(attributes, &MF_LOW_LATENCY, 1);
ok(hr == S_OK, "SetUINT32 returned %#lx\n", hr);
IMFAttributes_Release(attributes);

View File

@ -119,7 +119,7 @@ static HRESULT WINAPI transform_GetOutputStreamInfo(IMFTransform *iface, DWORD i
static HRESULT WINAPI transform_GetAttributes(IMFTransform *iface, IMFAttributes **attributes)
{
FIXME("iface %p, attributes %p stub!\n", iface, attributes);
return E_NOTIMPL;
return MFCreateAttributes(attributes, 0);
}
static HRESULT WINAPI transform_GetInputStreamAttributes(IMFTransform *iface, DWORD id, IMFAttributes **attributes)