CCmdQueue.GetCommandDueFor method
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The GetCommandDueFor
method retrieves a deferred command that is scheduled at a specified time.
Syntax
virtual HRESULT GetCommandDueFor(
REFERENCE_TIME tStream,
CDeferredCommand **ppCmd
);
Parameters
-
tStream
-
Time for which the command is scheduled.
-
ppCmd
-
Address of a pointer to the deferred command to be carried out at the time specified in the tStream parameter.
Return value
Returns VFW_E_NOT_FOUND if no commands are due; otherwise, returns S_OK.
Remarks
This member function takes a stream time and returns the deferred command scheduled at that time. The actual stream-time offset is calculated when the command queue is run. Commands remain queued until run or canceled. This member function will not block.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|