IMFASFStreamSelector::SetOutputMutexSelection method (wmcontainer.h)

Selects a mutual exclusion record to use for a mutual exclusion object associated with an output.

Syntax

HRESULT SetOutputMutexSelection(
  [in] DWORD dwOutputNum,
  [in] DWORD dwMutexNum,
  [in] WORD  wSelectedRecord
);

Parameters

[in] dwOutputNum

The output number for which to set a stream.

[in] dwMutexNum

Index of the mutual exclusion for which to select.

[in] wSelectedRecord

Record of the specified mutual exclusion to select.

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

An output is a stream in an Advanced Systems Format (ASF) data section that will be parsed. If mutual exclusion is used, mutually exclusive streams share the same output.

An ASF file can contain multiple mutually exclusive relationships, such as a file with both language based and bit-rate based mutual exclusion. If an output is involved in multiple mutually exclusive relationships, a record from each must be selected.

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

IMFASFStreamSelector

IMFASFStreamSelector::GetOutputMutex