CMediaType.CMediaType constructor

Constructor method.

Syntax


CMediaType(
  [ref] const CMediaType &cmtype,
              HRESULT    *phr = NULL
);

Parameters

cmtype [ref]

Reference to a CMediaType object. The constructor copies the media type to the new object, including the format block, if any.

phr

Pointer to a variable that receives an HRESULT value. This parameter can be a NULL pointer. Otherwise, the caller must set the value to S_OK before calling the constructor. If the constructor fails, it sets the value to a failure code.

Remarks

The constructor calls the CMediaType::InitMediaType method to initialize the media type.

Requirements

Header

Mtype.h (include Streams.h)

Library

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

See also

CMediaType Class

 

 

Show: