rtsp-stream: Set the multicast TTL parameter on multicast udp sinks
authorPatricia Muscalu <patricia@axis.com>
Tue, 13 Feb 2018 10:04:36 +0000 (11:04 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 26 Jun 2018 08:59:25 +0000 (10:59 +0200)
And not on unicast udp sinks

https://bugzilla.gnome.org/show_bug.cgi?id=793441

gst/rtsp-server/rtsp-stream.c

index 0e230a4..4be1ae3 100644 (file)
@@ -3820,10 +3820,12 @@ update_transport (GstRTSPStream * stream, GstRTSPStreamTransport * trans,
 
         if (tr->ttl > 0) {
           GST_INFO ("setting ttl-mc %d", tr->ttl);
-          if (priv->udpsink[0])
-            g_object_set (G_OBJECT (priv->udpsink[0]), "ttl-mc", tr->ttl, NULL);
-          if (priv->udpsink[1])
-            g_object_set (G_OBJECT (priv->udpsink[1]), "ttl-mc", tr->ttl, NULL);
+          if (priv->mcast_udpsink[0])
+            g_object_set (G_OBJECT (priv->mcast_udpsink[0]), "ttl-mc", tr->ttl,
+                NULL);
+          if (priv->mcast_udpsink[1])
+            g_object_set (G_OBJECT (priv->mcast_udpsink[1]), "ttl-mc", tr->ttl,
+                NULL);
         }
       } else {
         priv->transports = g_list_remove (priv->transports, trans);