diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-10-08 06:07:22 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-10-08 06:07:22 +0000 |
commit | e5a48677c1d9febf7f5d0ca170e3b91374a44343 (patch) | |
tree | ca137eecb4525c826625215f3ba152827fa13ee5 | |
parent | f4b32ca36d25de8a7c07dd9262fb7ab35b5bcccc (diff) | |
download | gst-plugins-bad-e5a48677c1d9febf7f5d0ca170e3b91374a44343.tar.gz gst-plugins-bad-e5a48677c1d9febf7f5d0ca170e3b91374a44343.tar.bz2 gst-plugins-bad-e5a48677c1d9febf7f5d0ca170e3b91374a44343.zip |
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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/gio/gstgio.c | 7 |
2 files changed, 8 insertions, 5 deletions
@@ -1,3 +1,9 @@ +2007-10-08 Sebastian Dröge <slomo@circular-chaos.org> + + * 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. + 2007-10-05 Wim Taymans <wim.taymans@gmail.com> * gst/rtpmanager/rtpsession.c: (rtp_session_next_timeout), 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 |