Microsoft DirectX 8.1 (C++)

IAMTimelineGroup::GetMediaType

The GetMediaType method retrieves the uncompressed media type for the group.

Syntax

HRESULT GetMediaType(
    AM_MEDIA_TYPE *pmt
);

Parameters

pmt

[out] Pointer to an AM_MEDIA_TYPE structure that is filled with the media type.

Return Value

Returns S_OK if successful, or E_POINTER otherwise.

Remarks

The caller must free the returned media type's format block, given in the pbFormat member of the returned AM_MEDIA_TYPE structure. You can use the helper function FreeMediaType from the base class library.

See Also