mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
2eb4d1b810
commit
1a38de2b17
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue