How to custom presenter of EVR

Hi,

I am trying to make a custom presenter of EVR with DShow.
But EVR cannot be connected after setting a custom presenter.
Of course it is connected properly without a custom presenter.
I implement it as the following sequence.

1) Create EVR
2) Create a new class which implements custom presenter interfaces.
New class exposes the following interfaces.
IMFVideoPresenter
IMFTopologyServiceLookup
IMFTopologyServiceLookupClient
IMFVideoDeviceID
IMFGetService
IMFAsyncCallback

3) Call _com_ptr_t::Attach method of IMFVideoPresenter interface with the new object.
4) Call IMFVideoRenderer::InitializeRenderer method with the new object.
This method returns S_OK.
5) Add EVR to the graph with IGraphBuilder::AddFilter method. This method returns S_OK.
6) Call IPin::QueryAccept method with EVR IPin interface.
This method returns S_FALSE.
I tested connection of Decoder and EVR with IGraphBuilder::ConnectDirect method, but it also failed.
In addition, IGraphBuilder::Connect method is the same result.

Can someone tell me how to implement a custom presenter of EVR with DShow?

thx.

[1195 byte] By [SnowWhite] at [2007-12-22]

Software Development for Windows Vista

Site Classified