Clock.idWait

Performs a blocking wait on id. id should have been created with [gst.clock.Clock.newSingleShotId] or [gst.clock.Clock.newPeriodicId] and should not have been unscheduled with a call to [gst.clock.Clock.idUnschedule].

If the jitter argument is not null and this function returns #GST_CLOCK_OK or #GST_CLOCK_EARLY, it will contain the difference against the clock and the time of id when this method was called. Positive values indicate how late id was relative to the clock (in which case this function will return #GST_CLOCK_EARLY). Negative values indicate how much time was spent waiting on the clock before this function returned.

Parameters

idThe #GstClockID to wait on
jittera pointer that will contain the jitter, can be null.

Returns

the result of the blocking wait. #GST_CLOCK_EARLY will be returned

if the current clock time is past the time of id, #GST_CLOCK_OK if id was scheduled in time. #GST_CLOCK_UNSCHEDULED if id was unscheduled with [gst.clock.Clock.idUnschedule].