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:
5f45069
)
gio: handle g_vfs_get_supported_uri_schemes() returning NULL
author
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Mon, 29 Oct 2012 13:31:28 +0000
(13:31 +0000)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Mon, 29 Oct 2012 13:31:28 +0000
(13:31 +0000)
Handle g_vfs_get_supported_uri_schemes() returning NULL more
gracefully, without criticals for passing NULL to g_strv_length().
gst/gio/gstgio.c
patch
|
blob
|
history
diff --git
a/gst/gio/gstgio.c
b/gst/gio/gstgio.c
index
f10d4a4
..
96e1fc0
100644
(file)
--- a/
gst/gio/gstgio.c
+++ b/
gst/gio/gstgio.c
@@
-102,7
+102,11
@@
_internal_get_supported_protocols (gpointer data)
gint i, j;
schemes = g_vfs_get_supported_uri_schemes (g_vfs_get_default ());
- num = g_strv_length ((gchar **) schemes);
+
+ if (schemes != NULL)
+ num = g_strv_length ((gchar **) schemes);
+ else
+ num = 0;
if (num == 0) {
GST_WARNING ("No GIO supported URI schemes found");