mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
ext/gio/gstgio.c: Return NULL instead of a gchar * array with one NULL element if we don't get any supported URI sche...
Original commit message from CVS: * ext/gio/gstgio.c: (gst_gio_get_supported_protocols): Return NULL instead of a gchar * array with one NULL element if we don't get any supported URI schemes from GIO.
This commit is contained in:
parent
e6528c39fe
commit
ee1cf43285
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-04-17 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* ext/gio/gstgio.c: (gst_gio_get_supported_protocols):
|
||||
Return NULL instead of a gchar * array with one NULL element if we
|
||||
don't get any supported URI schemes from GIO.
|
||||
|
||||
2008-04-15 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* gst/audiotestsrc/gstaudiotestsrc.c:
|
||||
|
|
|
@ -104,6 +104,11 @@ gst_gio_get_supported_protocols (void)
|
|||
schemes = g_vfs_get_supported_uri_schemes (g_vfs_get_default ());
|
||||
num = g_strv_length ((gchar **) schemes);
|
||||
|
||||
if (num == 0) {
|
||||
GST_WARNING ("No GIO supported URI schemes found");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
our_schemes = g_new0 (gchar *, num + 1);
|
||||
|
||||
/* - Filter http/https as we can't support the icy stuff with GIO.
|
||||
|
|
Loading…
Reference in a new issue