Commit d7175e26 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Implement IWMReader::SetOutputProps().

parent 5306d0ff
......@@ -123,11 +123,13 @@ static HRESULT WINAPI WMReader_GetOutputProps(IWMReader *iface, DWORD output, IW
return wm_reader_get_output_props(&reader->reader, output, props);
}
static HRESULT WINAPI WMReader_SetOutputProps(IWMReader *iface, DWORD output_num, IWMOutputMediaProps *output)
static HRESULT WINAPI WMReader_SetOutputProps(IWMReader *iface, DWORD output, IWMOutputMediaProps *props)
{
struct async_reader *This = impl_from_IWMReader(iface);
FIXME("(%p)->(%u %p)\n", This, output_num, output);
return E_NOTIMPL;
struct async_reader *reader = impl_from_IWMReader(iface);
TRACE("reader %p, output %u, props %p.\n", reader, output, props);
return wm_reader_set_output_props(&reader->reader, output, props);
}
static HRESULT WINAPI WMReader_GetOutputFormatCount(IWMReader *iface, DWORD output, DWORD *count)
......
......@@ -1483,14 +1483,7 @@ static void test_async_reader_types(void)
check_video_type(mt);
hr = IWMReader_SetOutputProps(reader, output_number, output_props);
todo_wine ok(hr == S_OK, "Got hr %#x.\n", hr);
if (hr != S_OK)
{
ref = IWMOutputMediaProps_Release(output_props);
ok(!ref, "Got outstanding refcount %d.\n", ref);
winetest_pop_context();
continue;
}
ok(hr == S_OK, "Got hr %#x.\n", hr);
hr = IWMReader_SetOutputProps(reader, 1 - output_number, output_props);
if (!i)
ok(hr == NS_E_INCOMPATIBLE_FORMAT /* win < 8, win10 1507-1809 */
......@@ -1498,7 +1491,7 @@ static void test_async_reader_types(void)
else
todo_wine ok(hr == NS_E_INVALID_REQUEST, "Got hr %#x.\n", hr);
hr = IWMReader_SetOutputProps(reader, 2, output_props);
todo_wine ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
hr = IWMReader_GetOutputProps(reader, output_number, &output_props2);
ok(hr == S_OK, "Got hr %#x.\n", hr);
......
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