From 59d916a071e445ece94b7971263f272d69da43e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 8 Jun 2015 17:10:56 +0200 Subject: [PATCH] netclientclock: Use the new GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC flag https://bugzilla.gnome.org/show_bug.cgi?id=750574 --- libs/gst/net/gstnetclientclock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c index 5a32ee95be..fe5b456a99 100644 --- a/libs/gst/net/gstnetclientclock.c +++ b/libs/gst/net/gstnetclientclock.c @@ -224,6 +224,7 @@ gst_net_client_clock_init (GstNetClientClock * self) self->priv = priv = GST_NET_CLIENT_CLOCK_GET_PRIVATE (self); GST_OBJECT_FLAG_SET (self, GST_CLOCK_FLAG_CAN_SET_MASTER); + GST_OBJECT_FLAG_SET (self, GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC); priv->internal_clock = g_object_new (GST_TYPE_SYSTEM_CLOCK, NULL); @@ -658,6 +659,9 @@ gst_net_client_clock_observe_times (GstNetClientClock * self, current_timeout = MIN (current_timeout, gst_clock_get_timeout (internal_clock)); priv->skipped_updates = 0; + + /* FIXME: When do we consider the clock absolutely not synced anymore? */ + gst_clock_set_synced (GST_CLOCK (self), TRUE); } else { /* Restore original calibration vars for the report, we're not changing the clock */ internal_time = orig_internal_time;