IMediaObject::GetStreamCount method

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

Syntax

HRESULT GetStreamCount(
  DWORD *pcInputStreams,
  DWORD *pcOutputStreams
);

Parameters

pcInputStreams

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

pcOutputStreams

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 code Description
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

   
Target Platform Windows
Header mediaobj.h (include Dmo.h)
Library Dmoguids.lib

See also

IMediaObject Interface