CSource.RemovePin method

The RemovePin method removes a specified pin from the filter. The method does not delete the pin.

Syntax

HRESULT RemovePin(
   CSourceStream *pStream
);

Parameters

pStream

Pointer to the CSourceStream object that implements the pin.

Return value

Returns one of the HRESULT values shown in the following table.

Return code Description
S_OK
Success.
S_FALSE
The filter does not contain this pin.

Remarks

The destructor method calls this method, to remove the output pin from the filter.

Requirements

Header
Source.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CSource Class