diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-03-05 10:52:11 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-03-05 10:53:15 +0200 |
commit | 206d2ded099e49d8d6e03fdc6158eb6ed96d6276 (patch) | |
tree | c0fecab8a43e3f99c8b4605f11de54fc01269213 | |
parent | 422d3a300216df5388d00eb1908562a9665b992a (diff) |
rtsp-stream: Disable multicast loopback for all our sockets
On Windows this is a receiver-side setting, on Linux a sender-side setting. As
we provide a socket ourselves to udpsrc, udpsrc is never setting the multicast
loopback setting on the socket... while udpsink does which unfortunately has
no effect here on Windows but on Linux.
https://bugzilla.gnome.org/show_bug.cgi?id=757488
-rw-r--r-- | gst/rtsp-server/rtsp-stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index fb71469..550ef50 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -1214,6 +1214,7 @@ alloc_ports_one_family (GstRTSPStream * stream, GSocketFamily family, G_SOCKET_PROTOCOL_UDP, NULL); if (!rtcp_socket) goto no_udp_protocol; + g_socket_set_multicast_loopback (rtcp_socket, FALSE); if (*server_addr_out) gst_rtsp_address_free (*server_addr_out); @@ -1227,6 +1228,7 @@ again: G_SOCKET_PROTOCOL_UDP, NULL); if (!rtp_socket) goto no_udp_protocol; + g_socket_set_multicast_loopback (rtp_socket, FALSE); } if (pool && ((transport == GST_RTSP_LOWER_TRANS_UDP && |