Hello,
I have written a custom renderer (inherits from CBaseFilter) which writes received samples into shared memory.
Basically, this filter is connected to a file reader:
File reader (async) -> Color space converter -> custom filter (renderer)
My problem is that I never receive any EC_COMPLETE notification from the graph builder, though I can reveive other notifications (EC_ACTIVATE, EC_NEED_RESTART, etc.). I guess something is missing in my implementation. I tried to do like this in the implementation of my input pin (inherits from CBaseInputPin):
STDMETHODIMP CInputPin::EndOfStream()
{
m_pFilter->NotifyEvent( EC_COMPLETE, 0, (LONG_PTR)m_pFilter );
return CBaseInputPin::EndOfStream();
}
But it doesn't work.
What am I missing?
Cheers.