Export (0) Print
Expand All

IMediaObject::GetStreamCount method

The GetStreamCount method retrieves the number of input and output streams.

Syntax


HRESULT GetStreamCount(
  [out]  DWORD *pcInputStreams,
  [out]  DWORD *pcOutputStreams
);

Parameters

pcInputStreams [out]

Pointer to a variable that receives the number of input streams. Cannot be NULL.

pcOutputStreams [out]

Pointer to a variable that receives the number of output streams. Cannot be NULL.

Return value

Returns an HRESULT value. Possible values include those in the following table.

Return codeDescription
E_POINTER

NULL pointer argument

S_OK

Success

 

Remarks

The DMO might have zero input streams or zero output streams. The number of streams does not change; a DMO cannot dynamically add or remove streams.

Requirements

Header

Mediaobj.h (include Dmo.h)

Library

Dmoguids.lib

See also

IMediaObject Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft