|Microsoft DirectX 9.0|
The RemoveFilter method removes a filter from the graph.
HRESULT RemoveFilter( IBaseFilter *pFilter );
[in] Pointer to the filter to be removed from the graph.
Returns one of the following values.
|E_POINTER||Null pointer argument.|
The Filter Graph Manager notifies the filter that it is being removed by calling the filter's IBaseFilter::JoinFilterGraph method with a NULL argument. It is not necessary to disconnect the filter's pins before calling RemoveFilter, but the filter graph should be in the Stopped state. If the filters are not stopped, RemoveFilter may fail to disconnect the pins and then fail to remove the filter from the graph. IGraphConfig::RemoveFilterEx enables an application to remove a filter without disconnecting the pins automatically, which improves performance if you want to move groups of connected filters into a new graph.