CMediaType.CMediaType constructor

Constructor method.

Syntax


CMediaType(
  const AM_MEDIA_TYPE &mtype,
  HRESULT *phr = NULL
);

Parameters

mtype [ref]

Reference to an AM_MEDIA_TYPE structure. 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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft