MFCreateMuxStreamSample function (mfapi.h)

Creates an IMFSample containing the samples of multiplexed substreams.

Syntax

HRESULT MFCreateMuxStreamSample(
  [in]  IMFCollection *pSamplesToMux,
  [out] IMFSample     **ppMuxSample
);

Parameters

[in] pSamplesToMux

The collection containing the IMFSample for each multiplexed substream.

[out] ppMuxSample

The IMFSample containing the samples for the multiplexed substreams.

Return value

The function 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
The pSamplesToMux parameter in null.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header mfapi.h
Library Mfplat.lib
DLL Mfplat.dll