Expand Minimize

KsStreamPointerScheduleTimeout function

The KsStreamPointerScheduleTimeout function registers a timeout callback with AVStream for the given stream pointer.

Syntax


void KsStreamPointerScheduleTimeout(
  _In_ PKSSTREAM_POINTER  StreamPointer,
  _In_ PFNKSSTREAMPOINTER Callback,
  _In_ ULONGLONG          Interval
);

Parameters

StreamPointer [in]

A pointer to a KSSTREAM_POINTER structure representing the stream pointer for which to register a timeout.

Callback [in]

A pointer to a minidriver-supplied AVStrMiniTimeoutCallback routine. If the stream pointer has not been deleted or the timeout canceled before the interval expires, AVStream calls this routine immediately following expiration of the interval.

Interval [in]

Specifies the interval in 100-nanosecond units from the current time to the time that the timeout occurs.

Return value

None

Remarks

It is safe to call KsStreamPointerScheduleTimeout on a stream pointer that already has a timeout scheduled. In this case, AVStream cancels the previous timeout and replaces it with the new timeout.

Note  If you call KsStreamPointerScheduleTimeout while the pin associated with the KSSTREAM_POINTER is still in the pause state, the scheduled timeout may not fire unless another timeout is scheduled later in the run state. At that point, it is possible for all the timeouts that were scheduled during pause to become active and fire immediately in a chain.

Also see Stream Pointers.

Requirements

Target platform

Universal

Header

Ks.h (include Ks.h)

Library

Ks.lib

IRQL

<=DISPATCH_LEVEL

See also

KsStreamPointerCancelTimeout
KsStreamPointerDelete
KSSTREAM_POINTER

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft