Windows Media Format SDK banner art
PreviousNext

To Change a Stream Number Within a Profile

Since profiles use stream numbers to identify unique streams contained within a profile, stream numbers cannot be reset by simply changing the stream number and calling the ReconfigStream method.

To change a stream number for a specific stream within a profile, perform the following steps.

  1. Call IWMProfile::GetStream or IWMProfileGetStreamByNumber to get a local copy of IWMStreamConfig.

  2. Call IWMProfile::RemoveStream to remove the specified stream from the profile.

  3. Use the local copy of IWMStreamConfig to change the stream number.

  4. Call IWMProfile::AddStream with the IWMStreamConfig to complete the change.

Remarks

This procedure causes the index of the stream to change. The stream is removed from any Mutual Exclusion object that it was a part of, and must be re-added.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.