CMediaType.Set method (Mtype.h)

The Set method sets the media type from another media type.

Syntax

HRESULT Set(
  [ref] const AM_MEDIA_TYPE &mtype
);

Parameters

mtype [ref]

Reference to an AM_MEDIA_TYPE structure.

Return value

Returns S_OK or E_OUTOFMEMORY.

Remarks

This method copies the entire media type from mtype.

Requirements

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

See also

CMediaType Class