[vlc-commits] input: add gopher scheme

Vincenzo Nicosia git at videolan.org
Tue Jan 7 18:37:17 CET 2020


vlc | branch: master | Vincenzo Nicosia <katolaz at freaknet.org> | Tue Jan  7 18:26:18 2020 +0100| [76a464d90bd9fd64d57fe2f7b369137511bdaa79] | committer: Thomas Guillem

input: add gopher scheme

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76a464d90bd9fd64d57fe2f7b369137511bdaa79
---

 modules/access/tcp.c | 1 -
 src/input/item.c     | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/tcp.c b/modules/access/tcp.c
index 078763e417..6ab6bf1c25 100644
--- a/modules/access/tcp.c
+++ b/modules/access/tcp.c
@@ -119,7 +119,6 @@ static int GopherOpen(vlc_object_t *obj)
     vlc_tls_t *sock;
     vlc_url_t url;
 
-
     if (vlc_UrlParse(&url, access->psz_url) || url.psz_host == NULL) 
     {
         msg_Err(access, "invalid location: %s", access->psz_location);
diff --git a/src/input/item.c b/src/input/item.c
index 9c3442d5c7..1a8a2bdb3f 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -1187,6 +1187,7 @@ static enum input_item_type_e GuessType( const input_item_t *p_item, bool *p_net
         { "fd",     ITEM_TYPE_UNKNOWN, false },
         { "file",   ITEM_TYPE_FILE, false },
         { "ftp",    ITEM_TYPE_FILE, true },
+        { "gopher", ITEM_TYPE_STREAM, true },
         { "http",   ITEM_TYPE_FILE, true },
         { "icyx",   ITEM_TYPE_STREAM, true },
         { "imem",   ITEM_TYPE_UNKNOWN, false },



More information about the vlc-commits mailing list