Commit fae39cf5 authored by Alfred Agrell's avatar Alfred Agrell Committed by Alexandre Julliard

winegstreamer: Implement IAMStreamSelect::Count in CLSID_MPEG1Splitter.

parent 7bcb6bc4
......@@ -1511,8 +1511,15 @@ static ULONG WINAPI stream_select_Release(IAMStreamSelect *iface)
static HRESULT WINAPI stream_select_Count(IAMStreamSelect *iface, DWORD *count)
{
FIXME("iface %p, count %p, stub!\n", iface, count);
return E_NOTIMPL;
struct parser *filter = impl_from_IAMStreamSelect(iface);
TRACE("filter %p, count %p\n", filter, count);
EnterCriticalSection(&filter->filter.filter_cs);
if (filter->sink.pin.peer)
*count = wg_parser_get_stream_count(filter->wg_parser);
else
*count = 0;
LeaveCriticalSection(&filter->filter.filter_cs);
return S_OK;
}
static HRESULT WINAPI stream_select_Info(IAMStreamSelect *iface, LONG index,
......
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