From 0aeeaec9767453f7b856da7ffc726464d211f616 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sat, 6 Jul 2019 16:15:40 -0400 Subject: [PATCH] srt: Fix listener crash if no URI is specified --- ext/srt/gstsrtobject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/srt/gstsrtobject.c b/ext/srt/gstsrtobject.c index 98e2851..e906769 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); -- 2.7.4