Gstreamer net clock syncronization

Nicolas Dufresne nicolas at ndufresne.ca
Tue Nov 28 14:45:59 UTC 2017


Le mardi 28 novembre 2017 à 01:45 -0700, andeb91 a écrit :
> I have a central unit that manages all devices connected with. With the
> instruction gst_net_time_provider_new (clock, ip, port) I create in the
> central unit a global net clock where other devices can sync.
> On devices I connect to this global net clock with the instruction clock =
> gst_net_client_clock_new(NULL, ip, port, 0); and I sync with it with the
> instruction gst_clock_wait_for_sync(clock, GST_CLOCK_TIME_NONE).
> 
> Everything seems going well, all devices are synced until I reboot the
> central unit and then everything is not synced if I don't reboot the device
> applications too. It seems that on devices there is a cache that avoid to
> re-sync the clock if the ip and the port is the same.
> 
> Can someone confirm my hypothesis? 
> Can someone help me to clean this kind of cache to re-sync clock also if the
> ip and the port are always the same? (if I change port or IP, clock is
> syncing..)

Seems like a potential and plausible corner case that might have never
been tested. This could be simulated in a unit test, but killing the
clock server and then restarting it with an backward offset.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171128/834bf598/attachment.sig>


More information about the gstreamer-devel mailing list