projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c04aba2
)
srt: Post error message for NULL host
author
Seungha Yang
<pudding8757@gmail.com>
Thu, 7 Dec 2017 02:02:02 +0000
(11:02 +0900)
committer
Olivier CrĂȘte
<olivier.crete@collabora.com>
Thu, 7 Dec 2017 19:06:19 +0000
(14:06 -0500)
... instead of crash without any information
https://bugzilla.gnome.org/show_bug.cgi?id=791329
ext/srt/gstsrt.c
patch
|
blob
|
history
diff --git
a/ext/srt/gstsrt.c
b/ext/srt/gstsrt.c
index
6ddccd4
..
39ccfdf
100644
(file)
--- a/
ext/srt/gstsrt.c
+++ b/
ext/srt/gstsrt.c
@@
-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) {