Export (0) Print
Expand All

IEVRFilterConfig::SetNumberOfStreams method

Sets the number of input pins on the EVR filter.

Syntax


HRESULT SetNumberOfStreams(
  [in]  DWORD dwMaxStreams
);

Parameters

dwMaxStreams [in]

Specifies the total number of input pins on the EVR filter. This value includes the input pin for the reference stream, which is created by default. For example, to mix one substream plus the reference stream, set this parameter to 2.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_INVALIDARG

Invalid number of streams. The minimum is one, and the maximum is 16.

VFW_E_WRONG_STATE

This method has already been called, or at least one pin is already connected.

 

Remarks

After this method has been called, it cannot be called a second time on the same instance of the EVR filter. Also, the method fails if any input pins are connected.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Evr.h

Library

Strmiids.lib

See also

IEVRFilterConfig
Enhanced Video Renderer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft