mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
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
This commit is contained in:
parent
422d3a3002
commit
206d2ded09
1 changed files with 2 additions and 0 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue