Module: wine Branch: master Commit: 2a4ec7dafc7ee38108f6a9f626a7c39e6b6777e0 URL: https://gitlab.winehq.org/wine/wine/-/commit/2a4ec7dafc7ee38108f6a9f626a7c39...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Aug 22 13:51:51 2022 +0200
winegstreamer: Use IWMSyncReader2_GetOutputCount in the async reader.
---
dlls/winegstreamer/wm_asyncreader.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/winegstreamer/wm_asyncreader.c b/dlls/winegstreamer/wm_asyncreader.c index f5509cd865d..84742d2f40f 100644 --- a/dlls/winegstreamer/wm_asyncreader.c +++ b/dlls/winegstreamer/wm_asyncreader.c @@ -496,10 +496,7 @@ static HRESULT WINAPI WMReader_GetOutputCount(IWMReader *iface, DWORD *count)
TRACE("reader %p, count %p.\n", reader, count);
- EnterCriticalSection(&reader->wm_reader->cs); - *count = reader->wm_reader->stream_count; - LeaveCriticalSection(&reader->wm_reader->cs); - return S_OK; + return IWMSyncReader2_GetOutputCount(reader->reader, count); }
static HRESULT WINAPI WMReader_GetOutputProps(IWMReader *iface, DWORD output, IWMOutputMediaProps **props)