应该可以这么做的.[^]
//[
]先在 FilterGraph 中得到 IMediaEventSin 接口.
FilterGraph.QueryInterface(IID_IMediaEventSink, FSink);
//[
]发送回放完成事件.
FSink.Notify(EC_COMPLETE, 0, 0);
---------------------------------------------------------------------
[?] EC_COMPLETE = $01;
{$EXTERNALSYM EC_COMPLETE}
// ( HResult, void ) : defaulted (special)
// Signals the completed playback of a stream within the graph. This message
// is sent by renderers when they receive end-of-stream. The default handling
// of this message results in a _SINGLE_ EC_COMPLETE being sent to the
// application when ALL of the individual renderers have signaled EC_COMPLETE
// to the filter graph. If the default handing is canceled, the application
// will see all of the individual EC_COMPLETEs.