mp3dmod: Implement IMediaObject::GetInputStreamInfo().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-02-21 19:34:55 -06:00 committed by Alexandre Julliard
parent 06fa9bd3f7
commit 7ee1b20d0d
2 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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);
}