Commit 5306d0ff authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Implement IWMReader::GetOutputFormatCount().

parent 00bc5eb7
......@@ -130,11 +130,13 @@ static HRESULT WINAPI WMReader_SetOutputProps(IWMReader *iface, DWORD output_num
return E_NOTIMPL;
}
static HRESULT WINAPI WMReader_GetOutputFormatCount(IWMReader *iface, DWORD output_num, DWORD *formats)
static HRESULT WINAPI WMReader_GetOutputFormatCount(IWMReader *iface, DWORD output, DWORD *count)
{
struct async_reader *This = impl_from_IWMReader(iface);
FIXME("(%p)->(%u %p)\n", This, output_num, formats);
return E_NOTIMPL;
struct async_reader *reader = impl_from_IWMReader(iface);
TRACE("reader %p, output %u, count %p.\n", reader, output, count);
return wm_reader_get_output_format_count(&reader->reader, output, count);
}
static HRESULT WINAPI WMReader_GetOutputFormat(IWMReader *iface, DWORD output,
......
......@@ -1441,8 +1441,8 @@ static void test_async_reader_types(void)
count = 0;
hr = IWMReader_GetOutputFormatCount(reader, output_number, &count);
todo_wine ok(hr == S_OK, "Got hr %#x.\n", hr);
todo_wine ok(count > 0, "Got count %u.\n", count);
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(count > 0, "Got count %u.\n", count);
for (j = 0; j < count; ++j)
{
......@@ -1518,7 +1518,7 @@ static void test_async_reader_types(void)
}
hr = IWMReader_GetOutputFormat(reader, output_number, count, &output_props);
todo_wine ok(hr == NS_E_INVALID_OUTPUT_FORMAT, "Got hr %#x.\n", hr);
ok(hr == NS_E_INVALID_OUTPUT_FORMAT, "Got hr %#x.\n", hr);
hr = IWMReader_GetOutputProps(reader, output_number, &output_props);
ok(hr == S_OK, "Got hr %#x.\n", hr);
......@@ -1540,7 +1540,7 @@ static void test_async_reader_types(void)
count = 0xdeadbeef;
hr = IWMReader_GetOutputFormatCount(reader, 2, &count);
todo_wine ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
ok(count == 0xdeadbeef, "Got count %#x.\n", count);
output_props = (void *)0xdeadbeef;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment