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/5955>
This commit is contained in:
Dan Searles 2024-01-22 12:18:25 -05:00 committed by GStreamer Marge Bot
parent da9d4225b1
commit da55b953a1

View file

@ -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);