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/5955>
This commit is contained in:
Dan Searles 2024-01-22 17:01:19 -05:00 committed by GStreamer Marge Bot
parent da55b953a1
commit 1d02d7eda0

View file

@ -4846,7 +4846,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