rtsp-stream: Disable multicast loopback for the multicast udp sources too
authorSebastian Dröge <sebastian@centricular.com>
Tue, 17 Nov 2015 10:44:38 +0000 (12:44 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 17 Nov 2015 10:45:58 +0000 (12:45 +0200)
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.

gst/rtsp-server/rtsp-stream.c

index 60442ad..3ea6a82 100644 (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