Compartilhar via


CTransformOutputPin::SetMediaType

 
Microsoft DirectShow 9.0

CTransformOutputPin::SetMediaType

The SetMediaType method sets the media type for the connection.

Syntax

  HRESULT SetMediaType(
    const CMediaType *mt
);

Parameters

mt

Pointer to a CMediaType object that specifies the media type.

Return Value

Returns S_OK.

Remarks

This method overrides the CBasePin::SetMediaType method. It calls the filter's CTransformFilter::SetMediaType method to inform the filter.

The pin must verify that the media type is acceptable before calling this method.

Requirements

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

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

See Also

CTransformOutputPin Class