clock: Add GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC and related API
authorSebastian Dröge <sebastian@centricular.com>
Wed, 3 Jun 2015 11:16:15 +0000 (13:16 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 3 Jun 2015 11:53:27 +0000 (13:53 +0200)
commitfe3249b0e1092c442e0889640295569eb012177d
tree05db96b1e3ba74c4792a69393241f6be04c5a54b
parent7130230ddb349d0ca7942abdba26b7558df055d1
clock: Add GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC and related API

gst_clock_wait_for_sync(), gst_clock_is_synced() and gst_clock_set_synced()
plus a signal to asynchronously wait for the clock to be synced.

This can be used by clocks to signal that they need initial synchronization
before they can report any time, and that this synchronization can also get
completely lost at some point. Network clocks, like the GStreamer
netclientclock, NTP or PTP clocks are examples for clocks where this is useful
to have as they can't report any time at all before they're synced.

https://bugzilla.gnome.org/show_bug.cgi?id=749391
docs/gst/gstreamer-sections.txt
gst/gstclock.c
gst/gstclock.h
win32/common/libgstreamer.def