[PATCH 2/5] mp3dmod: Implement IMediaObject::GetInputStreamInfo().

Zebediah Figura z.figura12 at gmail.com
Fri Feb 21 19:34:55 CST 2020


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 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 1f3b0126b8e..8afc128d807 100644
--- a/dlls/mp3dmod/mp3dmod.c
+++ b/dlls/mp3dmod/mp3dmod.c
@@ -145,9 +145,11 @@ static HRESULT WINAPI MediaObject_GetStreamCount(IMediaObject *iface, DWORD *inp
 
 static HRESULT WINAPI MediaObject_GetInputStreamInfo(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_GetOutputStreamInfo(IMediaObject *iface, DWORD index, DWORD *flags)
diff --git a/dlls/mp3dmod/tests/mp3dmod.c b/dlls/mp3dmod/tests/mp3dmod.c
index 33cc6f3754d..713623b2448 100644
--- a/dlls/mp3dmod/tests/mp3dmod.c
+++ b/dlls/mp3dmod/tests/mp3dmod.c
@@ -301,6 +301,11 @@ static void test_stream_info(void)
     ok(input_count == 1, "Got input count %u.\n", input_count);
     ok(output_count == 1, "Got output count %u.\n", output_count);
 
+    flags = 0xdeadbeef;
+    hr = IMediaObject_GetInputStreamInfo(dmo, 0, &flags);
+    ok(hr == S_OK, "Got hr %#x.\n", hr);
+    ok(!flags, "Got flags %#x.\n", flags);
+
     IMediaObject_Release(dmo);
 }
 
-- 
2.25.0




More information about the wine-devel mailing list