mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
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:
parent
da9d4225b1
commit
da55b953a1
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue