input: add gopher scheme
authorVincenzo Nicosia <katolaz@freaknet.org>
Tue, 7 Jan 2020 17:26:18 +0000 (18:26 +0100)
committerThomas Guillem <thomas@gllm.fr>
Tue, 7 Jan 2020 17:37:10 +0000 (18:37 +0100)
modules/access/tcp.c
src/input/item.c

index 078763e..6ab6bf1 100644 (file)
@@ -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);
index 9c3442d..1a8a2bd 100644 (file)
@@ -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 },