===============================================================================
Solution :
---------
implement the Receive() fn:
HRESULT TransformFilter:: Receive(IMediaSample* pMediaSample)
{
HRESULT hr = S_OK;
do
{
hr = GetDeliveryBuffer(&pOutputSample);
if (FAILED(hr)) return hr;
hr = Transform(pSample,pOutputSample);
if(FAILED(hr)) return hr;
hr = m_pOutput->Deliver(pOutputSample);
pOutputSample->Release();
}while(nOutputSample != 0);
return hr;
}
No comments:
Post a Comment