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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5967>
This commit is contained in:
Dan Searles 2024-01-22 12:18:25 -05:00 committed by Tim-Philipp Müller
parent f1a3d85e80
commit ba5692005d

View file

@ -4734,6 +4734,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);
@ -4797,6 +4800,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);