mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1433>
This commit is contained in:
parent
82fe23f212
commit
f6ac2e44bb
1 changed files with 1 additions and 9 deletions
|
@ -184,17 +184,9 @@ gst_rtp_src_set_property (GObject * object, guint prop_id,
|
|||
break;
|
||||
}
|
||||
case PROP_ADDRESS:{
|
||||
GInetAddress *addr;
|
||||
|
||||
gst_uri_set_host (self->uri, g_value_get_string (value));
|
||||
g_object_set_property (G_OBJECT (self->rtp_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),
|
||||
NULL);
|
||||
}
|
||||
g_object_unref (addr);
|
||||
g_object_set_property (G_OBJECT (self->rtcp_src), "address", value);
|
||||
break;
|
||||
}
|
||||
case PROP_PORT:{
|
||||
|
|
Loading…
Reference in a new issue