mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
gio: handle g_vfs_get_supported_uri_schemes() returning NULL
Handle g_vfs_get_supported_uri_schemes() returning NULL more gracefully, without criticals for passing NULL to g_strv_length().
This commit is contained in:
parent
5f45069624
commit
8abc646ecb
1 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue