strmbase: We cannot hold the RenderLock during QualityControlRender_WaitFor.

This commit is contained in:
Aric Stewart 2012-04-23 11:24:53 -05:00 committed by Alexandre Julliard
parent 5f38a1e1f7
commit 209bc696c1
1 changed files with 2 additions and 0 deletions

View File

@ -385,7 +385,9 @@ HRESULT WINAPI BaseRendererImpl_Receive(BaseRenderer *This, IMediaSample * pSamp
if (This->pFuncsTable->pfnOnWaitStart)
This->pFuncsTable->pfnOnWaitStart(This);
LeaveCriticalSection(&This->csRenderLock);
hr = QualityControlRender_WaitFor(This->qcimpl, pSample, This->RenderEvent);
EnterCriticalSection(&This->csRenderLock);
if (This->pFuncsTable->pfnOnWaitEnd)
This->pFuncsTable->pfnOnWaitEnd(This);