From bd985ea60856bc0fa4cf6dfd4ce87277af2fc04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 25 Oct 2023 13:33:39 +0300 Subject: [PATCH] ptp: Only time out SYNCs if we're actually waiting for a FOLLOW_UP Part-of: --- subprojects/gstreamer/libs/gst/net/gstptpclock.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/subprojects/gstreamer/libs/gst/net/gstptpclock.c b/subprojects/gstreamer/libs/gst/net/gstptpclock.c index 4982afe8d9..492ddd82f5 100644 --- a/subprojects/gstreamer/libs/gst/net/gstptpclock.c +++ b/subprojects/gstreamer/libs/gst/net/gstptpclock.c @@ -2399,9 +2399,11 @@ cleanup_cb (gpointer data) sync->delay_req_send_time_local) { clock_timed_out_delay_resp = TRUE; } - } else if ((domain->sync_interval != 0 - && sync->sync_recv_time_local + 4 * domain->sync_interval < now) - || (sync->sync_recv_time_local + 10 * GST_SECOND < now)) { + } else if (sync->follow_up_recv_time_local == GST_CLOCK_TIME_NONE && ( + (domain->sync_interval != 0 + && sync->sync_recv_time_local + 4 * domain->sync_interval < + now) + || (sync->sync_recv_time_local + 10 * GST_SECOND < now))) { timed_out = TRUE; // If no newer sync/follow-up received in the meantime, downgrade the