quartz: Reject samples in transform filter only when stopped.
Use S_FALSE for saying sample is rejected.
This commit is contained in:
parent
3dc8384aa9
commit
405e21d558
|
@ -54,11 +54,8 @@ 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)
|
if (This->state == State_Stopped)
|
||||||
return VFW_E_WRONG_STATE;
|
return S_FALSE;
|
||||||
|
|
||||||
return This->pFuncsTable->pfnProcessSampleData(This, pSample);
|
return This->pFuncsTable->pfnProcessSampleData(This, pSample);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue