Microsoft DirectX 9.0 |
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.
Requirements
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.
See Also