CMediaType.Set method

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

Syntax


HRESULT Set(
  [ref] const CMediaType &cmtype
);

Parameters

cmtype [ref]

Reference to a CMediaType object.

Return value

Returns S_OK or E_OUTOFMEMORY.

Remarks

This method copies the entire media type from cmtype.

Requirements

Header

Mtype.h (include Streams.h)

Library

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

See also

CMediaType Class

 

 

Show: