CTransformOutputPin.SetMediaType method

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

Transfrm.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

 

 

Show: