From 5372c3656480c56d810e3ec29ebb520d2b7a1b5c Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 4 Apr 2008 15:54:04 -0700 Subject: [PATCH] quartz: Fix past mistake, do hold lock on seeking and media control --- dlls/quartz/filtergraph.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index 417ec3f..7c00552 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -1472,9 +1472,8 @@ static HRESULT ExploreGraph(IFilterGraphImpl* pGraph, IPin* pOutputPin, fnFoundF CoTaskMemFree(ppPins); } TRACE("Doing stuff with filter %p\n", PinInfo.pFilter); - LeaveCriticalSection(&pGraph->cs); + FoundFilter(PinInfo.pFilter); - EnterCriticalSection(&pGraph->cs); } if (PinInfo.pFilter) IBaseFilter_Release(PinInfo.pFilter); @@ -1778,9 +1777,9 @@ static HRESULT all_renderers_seek(IFilterGraphImpl *This, fnFoundSeek FoundSeek, IBaseFilter_QueryInterface(pfilter, &IID_IMediaSeeking, (void**)&seek); if (!seek) continue; - LeaveCriticalSection(&This->cs); + hr = FoundSeek(This, seek, arg); - EnterCriticalSection(&This->cs); + IMediaSeeking_Release(seek); if (hr_return != E_NOTIMPL) allnotimpl = FALSE; -- 1.5.4.1