quartz: Correct a critical section lock reversal issue found by Marcus Meissner (Coverity).
This commit is contained in:
parent
600cbb7874
commit
6aafd2f1de
|
@ -368,11 +368,11 @@ static HRESULT WINAPI VideoRenderer_EndFlush(BaseRenderer* iface)
|
|||
if (This->renderer.pMediaSample) {
|
||||
ResetEvent(This->hEvent);
|
||||
LeaveCriticalSection(iface->pInputPin->pin.pCritSec);
|
||||
LeaveCriticalSection(&iface->filter.csFilter);
|
||||
LeaveCriticalSection(&iface->csRenderLock);
|
||||
LeaveCriticalSection(&iface->filter.csFilter);
|
||||
WaitForSingleObject(This->hEvent, INFINITE);
|
||||
EnterCriticalSection(&iface->csRenderLock);
|
||||
EnterCriticalSection(&iface->filter.csFilter);
|
||||
EnterCriticalSection(&iface->csRenderLock);
|
||||
EnterCriticalSection(iface->pInputPin->pin.pCritSec);
|
||||
}
|
||||
if (This->renderer.filter.state == State_Paused) {
|
||||
|
|
Loading…
Reference in New Issue