GstSystemClock: Add GST_CLOCK_TYPE_TAI
AVB applications are usually clocked on TAI (https://en.wikipedia.org/wiki/International_Atomic_Time) coordinate. In fact, pending MR gst-plugins-bad!800 (merged) expects pipeline to be on CLOCK_REALTIME (on UTC coordinate) and adds current TAI offset to it.
However, UTC to TAI offset can vary, so this patch allows a GStreamer pipeline to be clocked by system's CLOCK_TAI directly, removing need for hardcoded offsets or redundant element properties. It exposes a new GstClockType
for GstSystemClock
, GST_CLOCK_TYPE_TAI
that maps to system's CLOCK_TAI clock.
After this MR is (hopefully) merged, I'll send another MR on gst-plugins-bad to add GST_CLOCK_TYPE_TAI
to "clockselect" element.