rtsp-stream: Disable multicast loopback for the multicast udp sources too

On POSIX this setting is for sender sockets, on Windows for receiver sockets.
Previously we were only setting this for sender sockets, which caused looped
back packets to be received on Windows if a multicast transport was used.
This commit is contained in:
Sebastian Dröge 2015-11-17 12:44:38 +02:00
parent 52fb304ac9
commit cdc0849dfe

View file

@ -2863,6 +2863,7 @@ update_transport (GstRTSPStream * stream, GstRTSPStreamTransport * trans,
source->udpsrc[i] =
gst_element_make_from_uri (GST_URI_SRC, host, NULL, NULL);
g_free (host);
g_object_set (source->udpsrc[i], "loop", FALSE, NULL);
if (priv->srcpad) {
/* we set and keep these to playing so that they don't cause NO_PREROLL return