Compartilhar via


CBaseRenderer::SetMediaType

 
Microsoft DirectShow 9.0

CBaseRenderer::SetMediaType

The SetMediaType method is called when the pin's media type is set.

Syntax

  virtual HRESULT SetMediaType(
    const CMediaType *pmt
);

Parameters

pmt

Pointer to a CMediaType object that specifies the media type.

Return Value

Returns S_OK.

Remarks

The input pin calls this method from its own CRendererInputPin::SetMediaType method. This method does nothing in the base class.

Requirements

**  Header:** Declared in Renbase.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also