rtspsrc: fix ttl setting for udpsink[1]

Fix ttl setting being incorrectly applied to udpsink[0] rather
than to udpsink[1].

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5967>
This commit is contained in:
Dan Searles 2024-01-22 17:01:19 -05:00 committed by Tim-Philipp Müller
parent ba5692005d
commit 19d3b14f51

View file

@ -4804,7 +4804,7 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src,
g_object_set (G_OBJECT (stream->udpsink[1]), "multicast-iface",
src->multi_iface, NULL);
if (ttl > 0)
g_object_set (G_OBJECT (stream->udpsink[0]), "ttl", ttl, NULL);
g_object_set (G_OBJECT (stream->udpsink[1]), "ttl", ttl, NULL);
if (stream->udpsrc[1]) {
/* configure socket, we give it the same UDP socket as the udpsrc for RTCP