winegstreamer: Implement IWMReader::GetOutputCount().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-11-02 23:51:47 -05:00 committed by Alexandre Julliard
parent 42c82012c7
commit 34d85311f3
2 changed files with 7 additions and 7 deletions

View File

@ -102,15 +102,15 @@ static HRESULT WINAPI WMReader_Close(IWMReader *iface)
return hr; return hr;
} }
static HRESULT WINAPI WMReader_GetOutputCount(IWMReader *iface, DWORD *outputs) static HRESULT WINAPI WMReader_GetOutputCount(IWMReader *iface, DWORD *count)
{ {
struct async_reader *This = impl_from_IWMReader(iface); struct async_reader *reader = impl_from_IWMReader(iface);
FIXME("(%p)->(%p)\n", This, outputs);
if(!outputs) TRACE("reader %p, count %p.\n", reader, count);
return E_INVALIDARG;
*outputs = 0; EnterCriticalSection(&reader->reader.cs);
*count = reader->reader.stream_count;
LeaveCriticalSection(&reader->reader.cs);
return S_OK; return S_OK;
} }

View File

@ -1264,7 +1264,7 @@ static void test_async_reader_streaming(void)
count = 0xdeadbeef; count = 0xdeadbeef;
hr = IWMReader_GetOutputCount(reader, &count); hr = IWMReader_GetOutputCount(reader, &count);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#x.\n", hr);
todo_wine ok(count == 2, "Got count %u.\n", count); ok(count == 2, "Got count %u.\n", count);
for (i = 0; i < 2; ++i) for (i = 0; i < 2; ++i)
{ {