From: Sebastian Dröge Date: Mon, 8 Oct 2007 06:07:22 +0000 (+0000) Subject: ext/gio/gstgio.c: Use GIO function to get a list of supported URI schemes instead... X-Git-Tag: RELEASE-0_10_15~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa2e910ca1e64a2f4155f8ed37ba11768d6dd968;p=platform%2Fupstream%2Fgst-plugins-base.git ext/gio/gstgio.c: Use GIO function to get a list of supported URI schemes instead of hard coding something. Original commit message from CVS: * ext/gio/gstgio.c: (gst_gio_get_supported_protocols): Use GIO function to get a list of supported URI schemes instead of hard coding something. --- diff --git a/ext/gio/gstgio.c b/ext/gio/gstgio.c index 3680428..440ca01 100644 --- a/ext/gio/gstgio.c +++ b/ext/gio/gstgio.c @@ -93,11 +93,8 @@ gst_gio_seek (gpointer element, GSeekable * stream, guint64 offset, static gchar ** gst_gio_get_supported_protocols (void) { - /* FIXME: Figure out supported schemes enumeration method for GIO. */ - - const gchar *protocols[] = { "file", "ftp", "sftp", "smb", NULL }; - - return g_strdupv ((gchar **) protocols); + return g_strdupv ((gchar **) + g_vfs_get_supported_uri_schemes (g_vfs_get_default ())); } static GstURIType