From: Nicolas Dufresne Date: Sat, 6 Jul 2019 20:15:40 +0000 (-0400) Subject: srt: Fix listener crash if no URI is specified X-Git-Tag: 1.19.3~507^2~3113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1acd9c726a9dfc99980c6eeaa20d95be9d693d13;p=platform%2Fupstream%2Fgstreamer.git srt: Fix listener crash if no URI is specified --- diff --git a/ext/srt/gstsrtobject.c b/ext/srt/gstsrtobject.c index 98e2851da4..e90676961e 100644 --- a/ext/srt/gstsrtobject.c +++ b/ext/srt/gstsrtobject.c @@ -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);