From cb873f952752c072b6a27667c4b9ae226b386192 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 11 Feb 2008 18:02:13 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ ext/gnomevfs/gstgnomevfssrc.c | 2 +- ext/gnomevfs/gstgnomevfsuri.c | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 042d5f347..db2ec854f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-11 Tim-Philipp Müller + + * 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 Patch by: Alan Peevers diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c index ac2b0cf7a..21a7200a2 100644 --- a/ext/gnomevfs/gstgnomevfssrc.c +++ b/ext/gnomevfs/gstgnomevfssrc.c @@ -725,7 +725,7 @@ gst_gnome_vfs_src_check_get_range (GstBaseSrc * basesrc) if (protocol == NULL) 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" " (URI=%s)", protocol, GST_STR_NULL (src->uri_name)); return FALSE; diff --git a/ext/gnomevfs/gstgnomevfsuri.c b/ext/gnomevfs/gstgnomevfsuri.c index 1ee59d7b1..91f268f8b 100644 --- a/ext/gnomevfs/gstgnomevfsuri.c +++ b/ext/gnomevfs/gstgnomevfsuri.c @@ -35,9 +35,10 @@ gchar ** 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[] = { "http://localhost/bla", + "https://localhost/bla", "file:///bla", "smb://localhost/bla", "ftp://localhost/bla", @@ -46,6 +47,7 @@ gst_gnomevfs_get_supported_uris (void) "ssh://localhost/bla", "burn://" }; + GnomeVFSURI *uri; gchar **result; gint n, r = 0; -- 2.34.1