IMFTopologyNode::GetOutput method

Retrieves the node that is connected to a specified output stream on this node.

Syntax

HRESULT GetOutput(
  DWORD           dwOutputIndex,
  IMFTopologyNode **ppDownstreamNode,
  DWORD           *pdwInputIndexOnDownstreamNode
);

Parameters

dwOutputIndex

Zero-based index of an output stream on this node.

ppDownstreamNode

Receives a pointer to the IMFTopologyNode interface of the node that is connected to the specified output stream. The caller must release the interface.

pdwInputIndexOnDownstreamNode

Receives the index of the input stream that is connected to this node's output stream.

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
The index is out of range.
MF_E_NOT_FOUND
The specified input stream is not connected to another node.

Requirements

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

See Also

IMFTopologyNode

Topologies