gst-ptp-helper: Do not disable multicast loopback

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/1546>
This commit is contained in:
Nirbheek Chauhan 2021-11-04 13:24:57 +05:30 committed by Tim-Philipp Müller
parent 7bf0c5b7be
commit 9e58632c71

View file

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