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_CLOCK_FLAG_NEEDS_STARTUP_SYNC is not set on the clock, or if the clock is already synced.

class Clock
bool
waitForSync

Parameters

timeout GstClockTime

timeout for waiting or %GST_CLOCK_TIME_NONE

Return Value

Type: bool

%TRUE if waiting was successful, or %FALSE on timeout

Meta