ext/gnomevfs/: Add support for https protocol. Fixes #510229.

Original commit message from CVS:
* ext/gnomevfs/gstgnomevfssrc.c: (gst_gnome_vfs_src_check_get_range):
* ext/gnomevfs/gstgnomevfsuri.c: (gst_gnomevfs_get_supported_uris):
Add support for https protocol. Fixes #510229.
This commit is contained in:
Tim-Philipp Müller 2008-02-11 18:02:13 +00:00
parent f2f327d181
commit cb873f9527
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2008-02-11 Tim-Philipp Müller <tim at centricular dot net>
* ext/gnomevfs/gstgnomevfssrc.c: (gst_gnome_vfs_src_check_get_range):
* ext/gnomevfs/gstgnomevfsuri.c: (gst_gnomevfs_get_supported_uris):
Add support for https protocol. Fixes #510229.
2008-02-11 Julien Moutte <julien@fluendo.com> 2008-02-11 Julien Moutte <julien@fluendo.com>
Patch by: Alan Peevers <peeves@pacbell.net> Patch by: Alan Peevers <peeves@pacbell.net>

View file

@ -725,7 +725,7 @@ gst_gnome_vfs_src_check_get_range (GstBaseSrc * basesrc)
if (protocol == NULL) if (protocol == NULL)
goto undecided; goto undecided;
if (strcmp (protocol, "http") == 0) { if (strcmp (protocol, "http") == 0 || strcmp (protocol, "https") == 0) {
GST_LOG_OBJECT (src, "blacklisted protocol '%s', no random access possible" GST_LOG_OBJECT (src, "blacklisted protocol '%s', no random access possible"
" (URI=%s)", protocol, GST_STR_NULL (src->uri_name)); " (URI=%s)", protocol, GST_STR_NULL (src->uri_name));
return FALSE; return FALSE;

View file

@ -35,9 +35,10 @@
gchar ** gchar **
gst_gnomevfs_get_supported_uris (void) gst_gnomevfs_get_supported_uris (void)
{ {
GnomeVFSURI *uri; /* no dav/davs in the list, because they don't appear to be reliable enough */
const gchar *uris[] = { const gchar *uris[] = {
"http://localhost/bla", "http://localhost/bla",
"https://localhost/bla",
"file:///bla", "file:///bla",
"smb://localhost/bla", "smb://localhost/bla",
"ftp://localhost/bla", "ftp://localhost/bla",
@ -46,6 +47,7 @@ gst_gnomevfs_get_supported_uris (void)
"ssh://localhost/bla", "ssh://localhost/bla",
"burn://" "burn://"
}; };
GnomeVFSURI *uri;
gchar **result; gchar **result;
gint n, r = 0; gint n, r = 0;