quartz: Drop packets in the transform filter if in the wrong state.

This commit is contained in:
Maarten Lankhorst 2008-04-07 22:28:47 -07:00 committed by Alexandre Julliard
parent 0117468754
commit 8939a41563

View file

@ -54,6 +54,12 @@ static HRESULT TransformFilter_Sample(LPVOID iface, IMediaSample * pSample)
TRACE("%p %p\n", iface, pSample);
if (This->state == State_Paused)
return S_FALSE;
if (This->state == State_Stopped)
return VFW_E_WRONG_STATE;
return This->pFuncsTable->pfnProcessSampleData(This, pSample);
}