Microsoft DirectX 9.0

IMediaDet::get_OutputStreams

The get_OutputStreams method retrieves the number of audio and video streams contained in the media source. Any other stream types, such as data streams, are ignored.

Syntax

HRESULT get_OutputStreams(
    long *pVal
);

Parameters

pVal

[out, retval] Pointer to a variable that receives the number of output streams.

Return Value

Returns one of the following HRESULT values:

Value Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_POINTER NULL pointer argument.

Remarks

Before calling this method, call IMediaDet::put_Filename to set the file name. If the media detector is in bitmap grab mode, this method returns E_INVALIDARG. For more information, see IMediaDet::EnterBitmapGrabMode.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also