IMFMuxStreamMediaTypeManager::GetMediaType method (mfobjects.h)

Gets the IMFMediaType of the substream with the specified index.

Syntax

HRESULT GetMediaType(
  [in]  DWORD        dwMuxStreamIndex,
  [out] IMFMediaType **ppMediaType
);

Parameters

[in] dwMuxStreamIndex

The index of the substream for which the media type is retrieved.

[out] ppMediaType

The media type of the substream with the specified index.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_INVALIDARG
Invalid argument.
MF_E_INVALIDSTREAMNUMBER
The stream specified substream index is invalid. Call GetStreamCount to get the number of substreams managed by the multiplexed media source.
MF_E_INVALIDMEDIATYPE
The media type of the specified substream is invalid.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header mfobjects.h
Library Mfplat.lib; Mfplat.dll

See also

IMFMuxStreamMediaTypeManager