IMFASFProfile::RemoveStream method (wmcontainer.h)

Removes a stream from the Advanced Systems Format (ASF) profile object.

Syntax

HRESULT RemoveStream(
  [in] WORD wStreamNumber
);

Parameters

[in] wStreamNumber

Stream number of the stream to remove.

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.

Remarks

After a stream is removed, the ASF profile object reassigns stream indexes so that the index values are sequential starting from zero. Any previously stored stream index numbers are no longer valid after deleting a stream.

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 Profile

IMFASFProfile

IMFASFProfile::GetStream

IMFASFProfile::SetStream