Clock.waitForSync

Waits until clock is synced for reporting the current time. If timeout is GST_CLOCK_TIME_NONE it will wait forever, otherwise it will time out after timeout nanoseconds.

For asynchronous waiting, the #GstClock::synced signal can be used.

This returns immediately with true if gst.types.ClockFlags.NeedsStartupSync is not set on the clock, or if the clock is already synced.

class Clock
bool
waitForSync

Parameters

timeout gst.types.ClockTime

timeout for waiting or GST_CLOCK_TIME_NONE

Return Value

Type: bool

true if waiting was successful, or false on timeout