mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
srt: Fix listener crash if no URI is specified
This commit is contained in:
parent
b06f7824e1
commit
1acd9c726a
1 changed files with 2 additions and 0 deletions
|
@ -724,6 +724,8 @@ gst_srt_object_wait_connect (GstSRTObject * srtobject,
|
|||
|
||||
local_address =
|
||||
gst_structure_get_string (srtobject->parameters, "localaddress");
|
||||
if (local_address == NULL)
|
||||
local_address = GST_SRT_DEFAULT_LOCALADDRESS;
|
||||
|
||||
bind_addr = g_inet_socket_address_new_from_string (local_address, local_port);
|
||||
bind_sa_len = g_socket_address_get_native_size (bind_addr);
|
||||
|
|
Loading…
Reference in a new issue