rtsp-stream: Set the multicast TTL parameter on multicast udp sinks

And not on unicast udp sinks

https://bugzilla.gnome.org/show_bug.cgi?id=793441
This commit is contained in:
Patricia Muscalu 2018-02-13 11:04:36 +01:00 committed by Sebastian Dröge
parent 2eb4d1b810
commit 1a38de2b17

View 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);