Partager via


IMediaObject::GetInputStatus

The GetInputStatus method queries whether an input stream can accept more input data.

Syntax

HRESULT GetInputStatus(
    DWORD dwInputStreamIndex,
    DWORD* dwFlags
);

Parameters

dwInputStreamIndex

Zero-based index of an input stream on the DMO.

dwFlags

[out] Pointer to a variable that receives either zero or DMO_INPUT_STATUSF_ACCEPT_DATA.

Return Value

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

Return Code Description
DMO_E_INVALIDSTREAMINDEX Invalid stream index
S_OK Success

Remarks

If the input stream will accept more data, the method returns the DMO_INPUT_STATUSF_ACCEPT_DATA flag in the dwFlags parameter. Otherwise, it sets this parameter to zero. If the stream will accept more data, the application can call the IMediaObject::ProcessInput method.

The status of an input stream can change only as the result of one of the following method calls.

Method Description
IMediaObject::Discontinuity Signals a discontinuity on the specified input stream.
IMediaObject::Flush Flushes all internally buffered data.
IMediaObject::ProcessInput Delivers a buffer to the specified input stream.
IMediaObject::ProcessOutput Generates output from the current input data.

Requirements

  Header: Declared in Mediaobj.h; include Dmo.h
  Library: Dmoguids.lib.

See Also

© 2004 Microsoft Corporation. All rights reserved.