共用方式為


IMediaStreamFilter::EnumMediaStreams

 
Microsoft DirectShow 9.0

IMediaStreamFilter::EnumMediaStreams

  • Note   This interface is deprecated. New applications should not use it.

The EnumMediaStreams method retrieves a media stream, specified by index.

Syntax

  HRESULT EnumMediaStreams(
    long Index,
    IMediaStream **ppMediaStream
);

Parameters

Index

[in] Index of the media stream to retrieve.

ppMediaStream

[out] Address of a variable that receives an IMediaStream interface pointer.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
S_FALSE Index out of range.
S_OK Success.

Remarks

If the method succeeds, the caller must release the IMediaStream interface.

See Also