Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method retrieves the total number of frames that the filter has delivered since it started streaming.

Syntax

HRESULT GetNumNotDropped(
  long* 
plNotDropped
);

Parameters

plNotDropped

[out] Pointer to a long variable that receives the number of delivered frames.

Return Value

Returns an HRESULT value. The following table shows some possible return values.

Value Description

S_OK

Success.

E_POINTER

NULL pointer argument.

Remarks

The filter resets the count to zero when it transitions from stopped to paused.

If your application uses the IAMStreamControl interfaceto control a pin, the driver might continue to count dropped and non-dropped frames while the pin is off. To get an accurate count, call this method once when you turn on the pin, and again when you turn off the pin. The difference is the total number of delivered frames. (If the start time occurs later than the call to IAMStreamControl::StartAt, the application should listen for the EC_STREAM_CONTROL_STARTEDevent.) These remarks also apply if your application uses the ICaptureGraphBuilder2::ControlStreammethod.

Requirements

Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment

See Also