mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
srt: Post error message for NULL host
... instead of crash without any information https://bugzilla.gnome.org/show_bug.cgi?id=791329
This commit is contained in:
parent
c04aba241e
commit
80f03b4d15
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,12 @@ gst_srt_client_connect_full (GstElement * elem, int sender,
|
|||
gpointer sa;
|
||||
size_t sa_len;
|
||||
|
||||
if (host == NULL) {
|
||||
GST_ELEMENT_ERROR (elem, RESOURCE, OPEN_READ, ("Invalid host"),
|
||||
("Unspecified NULL host"));
|
||||
goto failed;
|
||||
}
|
||||
|
||||
*socket_address = g_inet_socket_address_new_from_string (host, port);
|
||||
|
||||
if (*socket_address == NULL) {
|
||||
|
|
Loading…
Reference in a new issue