ptp clock: Wait for ANNOUNCE before selecting a master
authorJan Schmidt <jan@centricular.com>
Thu, 11 Oct 2018 03:34:40 +0000 (14:34 +1100)
committerJan Schmidt <jan@centricular.com>
Thu, 11 Oct 2018 11:11:51 +0000 (22:11 +1100)
commit04176bede1ecca332bf8ac8608a12cd835f6a818
treee011d435131a4003ba682af9e8ba48bfb1ba4161
parentd37fcea225452cb334d28e4c93b01e734574ff0f
ptp clock: Wait for ANNOUNCE before selecting a master

Previously, with opportunistic sync we'd track a master
clock as soon as we see a SYNC message, and hence sync up
faster, but then we'd announce we're synched before seeing
the ANNOUNCE, leaving the clock details like grandmaster-clock
empty.

A better way is to start tracking the clock opportunistically,
but not announce we're synched until we've also seen the ANNOUNCE.
libs/gst/net/gstptpclock.c