Commit f6ac2e44 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by GStreamer Merge Bot

rtpsrc: Always set rtcp socket address

Regardless if it's multicast or not, set the address property to match
the element address. This is the address of the interface to listen to,
which is expected to be ANY in most cases, but should be honnored even
for RTCP non-multicast case.

This also fixes an assertion if the address is not a parsable IPv4 or
IPv6 string.

Part-of: <!1433>
parent 82fe23f2
...@@ -184,17 +184,9 @@ gst_rtp_src_set_property (GObject * object, guint prop_id, ...@@ -184,17 +184,9 @@ gst_rtp_src_set_property (GObject * object, guint prop_id,
break; break;
} }
GInetAddress *addr;
gst_uri_set_host (self->uri, g_value_get_string (value)); gst_uri_set_host (self->uri, g_value_get_string (value));
g_object_set_property (G_OBJECT (self->rtp_src), "address", value); g_object_set_property (G_OBJECT (self->rtp_src), "address", value);
g_object_set_property (G_OBJECT (self->rtcp_src), "address", value);
addr = g_inet_address_new_from_string (gst_uri_get_host (self->uri));
if (g_inet_address_get_is_multicast (addr)) {
g_object_set (self->rtcp_src, "address", gst_uri_get_host (self->uri),
g_object_unref (addr);
break; break;
} }
case PROP_PORT:{ case PROP_PORT:{
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment