Maarten Lankhorst : quartz: Fix past mistake to release lock during seeking and changing state.
Alexandre Julliard
julliard at winehq.org
Mon Apr 7 06:50:33 CDT 2008
Module: wine
Branch: master
Commit: 3d3dcc4e07d9046a71a49309003690859b73422e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d3dcc4e07d9046a71a49309003690859b73422e
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Fri Apr 4 15:54:04 2008 -0700
quartz: Fix past mistake to release lock during seeking and changing state.
---
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;
More information about the wine-cvs
mailing list