CBaseRenderer.GetPin method

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The GetPin method retrieves a pin.

Syntax

virtual CBasePin* GetPin(
   int n
);

Parameters

n

Number of the specified pin. Must be zero.

Return value

Returns the CBaseRenderer::m_pInputPin pointer.

Remarks

This method implements the CBaseFilter::GetPin method, which is pure virtual in the CBaseFilter class. The filter supports exactly one pin (the input pin). The first time this method is called, it creates the pin as a new CRendererInputPin object.

Requirements

Requirement Value
Header
Renbase.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CBaseRenderer Class