[PATCH v2 5/5] winegstreamer: Return S_OK from H264 decoder GetAttributes.
Rémi Bernon
rbernon at codeweavers.com
Fri Mar 4 07:21:08 CST 2022
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 at codeweavers.com>
---
dlls/mf/tests/mf.c | 2 --
dlls/winegstreamer/h264_decoder.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c
index 453e651930a..3a42ea37b5d 100644
--- a/dlls/mf/tests/mf.c
+++ b/dlls/mf/tests/mf.c
@@ -6639,9 +6639,7 @@ static void test_h264_decoder(void)
goto failed;
hr = IMFTransform_GetAttributes(transform, &attributes);
- todo_wine
ok(hr == S_OK, "GetAttributes returned %#x\n", hr);
- if (hr != S_OK) MFCreateAttributes(&attributes, 0);
hr = IMFAttributes_SetUINT32(attributes, &MF_LOW_LATENCY, 1);
ok(hr == S_OK, "SetUINT32 returned %#x\n", hr);
IMFAttributes_Release(attributes);
diff --git a/dlls/winegstreamer/h264_decoder.c b/dlls/winegstreamer/h264_decoder.c
index 2fafaea4fff..fdc0d6addeb 100644
--- a/dlls/winegstreamer/h264_decoder.c
+++ b/dlls/winegstreamer/h264_decoder.c
@@ -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)
--
2.34.1
More information about the wine-devel
mailing list