From 1d02d7eda010695070dbed763df176b5ec5f7b47 Mon Sep 17 00:00:00 2001 From: Dan Searles Date: Mon, 22 Jan 2024 17:01:19 -0500 Subject: [PATCH] rtspsrc: fix ttl setting for udpsink[1] Fix ttl setting being incorrectly applied to udpsink[0] rather than to udpsink[1]. Part-of: --- subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c index 7d03a79b37..a914aa0603 100644 --- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c +++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c @@ -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