Zebediah Figura : mp3dmod: Implement IMediaObject::GetOutputStreamInfo().
Alexandre Julliard
julliard at winehq.org
Mon Feb 24 15:23:53 CST 2020
Module: wine
Branch: master
Commit: 5d4ff5594cc9bb1a9c88b62da09ea671bbd36168
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5d4ff5594cc9bb1a9c88b62da09ea671bbd36168
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Fri Feb 21 19:34:56 2020 -0600
mp3dmod: Implement IMediaObject::GetOutputStreamInfo().
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mp3dmod/mp3dmod.c | 6 ++++--
dlls/mp3dmod/tests/mp3dmod.c | 5 +++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/mp3dmod/mp3dmod.c b/dlls/mp3dmod/mp3dmod.c
index 8afc128d80..9e86bcc31d 100644
--- a/dlls/mp3dmod/mp3dmod.c
+++ b/dlls/mp3dmod/mp3dmod.c
@@ -154,9 +154,11 @@ static HRESULT WINAPI MediaObject_GetInputStreamInfo(IMediaObject *iface, DWORD
static HRESULT WINAPI MediaObject_GetOutputStreamInfo(IMediaObject *iface, DWORD index, DWORD *flags)
{
- FIXME("(%p)->(%d, %p) stub!\n", iface, index, flags);
+ TRACE("iface %p, index %u, flags %p.\n", iface, index, flags);
- return E_NOTIMPL;
+ *flags = 0;
+
+ return S_OK;
}
static HRESULT WINAPI MediaObject_GetInputType(IMediaObject *iface, DWORD index, DWORD type_index, DMO_MEDIA_TYPE *type)
diff --git a/dlls/mp3dmod/tests/mp3dmod.c b/dlls/mp3dmod/tests/mp3dmod.c
index 713623b244..211731db9a 100644
--- a/dlls/mp3dmod/tests/mp3dmod.c
+++ b/dlls/mp3dmod/tests/mp3dmod.c
@@ -306,6 +306,11 @@ static void test_stream_info(void)
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(!flags, "Got flags %#x.\n", flags);
+ flags = 0xdeadbeef;
+ hr = IMediaObject_GetOutputStreamInfo(dmo, 0, &flags);
+ ok(hr == S_OK, "Got hr %#x.\n", hr);
+ ok(!flags, "Got flags %#x.\n", flags);
+
IMediaObject_Release(dmo);
}
More information about the wine-cvs
mailing list