Commit 1acd9c72 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by Olivier Crête

srt: Fix listener crash if no URI is specified

parent b06f7824
Pipeline #47361 passed with stages
in 32 minutes and 30 seconds
......@@ -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);
......
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