Alfred Agrell : winegstreamer: Implement IAMStreamSelect::Count in CLSID_MPEG1Splitter.
Module: wine Branch: master Commit: fae39cf5a78d622ee825e82bafef1323b3073356 URL: https://gitlab.winehq.org/wine/wine/-/commit/fae39cf5a78d622ee825e82bafef132... Author: Alfred Agrell <floating(a)muncher.se> Date: Tue Sep 26 23:52:53 2023 +0200 winegstreamer: Implement IAMStreamSelect::Count in CLSID_MPEG1Splitter. --- dlls/winegstreamer/quartz_parser.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dlls/winegstreamer/quartz_parser.c b/dlls/winegstreamer/quartz_parser.c index f9d8d79b259..b1a463af531 100644 --- a/dlls/winegstreamer/quartz_parser.c +++ b/dlls/winegstreamer/quartz_parser.c @@ -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,
participants (1)
-
Alexandre Julliard