gst-ptp-helper: Do not disable multicast loopback
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 4 Nov 2021 07:54:57 +0000 (13:24 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 8 Nov 2021 07:27:08 +0000 (07:27 +0000)
Otherwise we cannot run gst-ptp-helper if the PTP master is on the
same device.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1306>

subprojects/gstreamer/libs/gst/helpers/gst-ptp-helper.c

index 91a2570..4e8ab36 100644 (file)
@@ -226,7 +226,6 @@ setup_sockets (void)
   if (!socket_event)
     g_error ("Couldn't create event socket: %s", err->message);
   g_clear_error (&err);
-  g_socket_set_multicast_loopback (socket_event, FALSE);
 
   socket_general =
       g_socket_new (G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_DATAGRAM,
@@ -234,7 +233,6 @@ setup_sockets (void)
   if (!socket_general)
     g_error ("Couldn't create general socket: %s", err->message);
   g_clear_error (&err);
-  g_socket_set_multicast_loopback (socket_general, FALSE);
 
   /* Bind sockets */
   bind_addr = g_inet_address_new_any (G_SOCKET_FAMILY_IPV4);