From 9ba8107ec665df5f8a9ff36d9324b7255cf7c74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 30 Oct 2023 16:24:23 +0200 Subject: [PATCH] ptp: Only warn if the clock id and interface of a timed out matches the current one Part-of: --- subprojects/gstreamer/libs/gst/net/gstptpclock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gstreamer/libs/gst/net/gstptpclock.c b/subprojects/gstreamer/libs/gst/net/gstptpclock.c index 492ddd82f5..2089d5d3be 100644 --- a/subprojects/gstreamer/libs/gst/net/gstptpclock.c +++ b/subprojects/gstreamer/libs/gst/net/gstptpclock.c @@ -2365,7 +2365,8 @@ cleanup_cb (gpointer data) GList *tmp = n->next; if (compare_clock_identity (&sender->master_clock_identity, - &domain->master_clock_identity) == 0) + &domain->master_clock_identity) == 0 + && sender->iface_idx == domain->iface_idx) GST_WARNING ("currently selected master clock timed out"); g_free (sender); domain->announce_senders =