quartz: Drop packets in the transform filter if in the wrong state.
This commit is contained in:
parent
0117468754
commit
8939a41563
|
@ -54,6 +54,12 @@ static HRESULT TransformFilter_Sample(LPVOID iface, IMediaSample * pSample)
|
||||||
|
|
||||||
TRACE("%p %p\n", iface, 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);
|
return This->pFuncsTable->pfnProcessSampleData(This, pSample);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue