Compartilhar via


CMediaType::Set

 
Microsoft DirectShow 9.0

CMediaType::Set

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

Syntax

  HRESULT Set(
    const CMediaType& cmtype
);

HRESULT Set(
    const AM_MEDIA_TYPE& mtype
};

Parameters

cmtype

Reference to a CMediaType object.

length

Reference to an AM_MEDIA_TYPE structure.

Return Value

Returns S_OK or E_OUTOFMEMORY.

Remarks

This method copies the entire media type from cmtype or mtype.

Requirements

**  Header:** Declared in Mtype.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also