IMediaObject::GetStreamCount
The GetStreamCount method retrieves the number of input and output streams.
Syntax
HRESULT GetStreamCount(
DWORD* pcInputStreams,
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 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
Header: Declared in Mediaobj.h; include Dmo.h
Library: Dmoguids.lib.
See Also