Commit 8939a415 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

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

parent 01174687
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment