strmbase: Do not hold the csReceive lock when calling the transform's Receive function.

This commit is contained in:
Aric Stewart 2012-01-23 08:33:02 -06:00 committed by Alexandre Julliard
parent f624876d3e
commit e2200b31d6

View file

@ -81,12 +81,12 @@ static HRESULT WINAPI TransformFilter_Input_Receive(BaseInputPin *This, IMediaSa
return S_FALSE; return S_FALSE;
} }
LeaveCriticalSection(&pTransform->csReceive);
if (pTransform->pFuncsTable->pfnReceive) if (pTransform->pFuncsTable->pfnReceive)
hr = pTransform->pFuncsTable->pfnReceive(pTransform, pInSample); hr = pTransform->pFuncsTable->pfnReceive(pTransform, pInSample);
else else
hr = S_FALSE; hr = S_FALSE;
LeaveCriticalSection(&pTransform->csReceive);
return hr; return hr;
} }