From da55b953a1e5f7bf518e9f8da490d063c960d775 Mon Sep 17 00:00:00 2001 From: Dan Searles Date: Mon, 22 Jan 2024 12:18:25 -0500 Subject: [PATCH] rtspsrc: set multicast-iface on udpsinks Copy rtspsrc property multicast-iface to its udpsinks to allow messages over those sinks back to the server to work (and prevent 'Network unreachable' warnings). Closes: #3239 Part-of: --- subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c index 864594d025..7d03a79b37 100644 --- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c +++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c @@ -4776,6 +4776,9 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src, /* no sync or async state changes needed */ g_object_set (G_OBJECT (stream->udpsink[0]), "auto-multicast", FALSE, "loop", FALSE, "sync", FALSE, "async", FALSE, NULL); + if (src->multi_iface != NULL) + g_object_set (G_OBJECT (stream->udpsink[0]), "multicast-iface", + src->multi_iface, NULL); if (ttl > 0) g_object_set (G_OBJECT (stream->udpsink[0]), "ttl", ttl, NULL); @@ -4839,6 +4842,9 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src, /* no sync or async state changes needed */ g_object_set (G_OBJECT (stream->udpsink[1]), "auto-multicast", FALSE, "loop", FALSE, "sync", FALSE, "async", FALSE, NULL); + if (src->multi_iface != NULL) + 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);