IMFASFSplitter::SelectStreams method (wmcontainer.h)

Sets the streams to be parsed by the Advanced Systems Format (ASF) splitter.

Syntax

HRESULT SelectStreams(
  [in] WORD *pwStreamNumbers,
  [in] WORD wNumStreams
);

Parameters

[in] pwStreamNumbers

An array of variables containing the list of stream numbers to select.

[in] wNumStreams

The number of valid elements in the stream number array.

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
pwStreamNumbers is NULL and wNumStreams contains a value greater than zero.
MF_E_INVALIDSTREAMNUMBER
Invalid stream number was passed in the array.

Remarks

Calling this method supersedes any previous stream selections; only the streams specified in the pwStreamNumbers array will be selected.

By default, no streams are selected by the splitter.

You can obtain a list of the currently selected streams by calling the IMFASFSplitter::GetSelectedStreams method.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wmcontainer.h
Library Mfuuid.lib

See also

ASF Splitter

IMFASFSplitter