From e5a48677c1d9febf7f5d0ca170e3b91374a44343 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <slomo@circular-chaos.org>
Date: Mon, 8 Oct 2007 06:07:22 +0000
Subject: 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.
---
 ext/gio/gstgio.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'ext/gio/gstgio.c')

diff --git a/ext/gio/gstgio.c b/ext/gio/gstgio.c
index 3680428c..440ca01c 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
-- 
cgit v1.2.1