[vlc-devel] [WIP PATCH 1/4] input: add torrent and magnet schemes

Jonathan Calmels jbjcalmels at gmail.com
Thu Jan 29 16:03:59 CET 2015


---
 src/input/item.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/input/item.c b/src/input/item.c
index 33c7b26..58e2bb4 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -913,7 +913,7 @@ input_item_t *input_item_Copy( input_item_t *p_input )
 
 struct item_type_entry
 {
-    const char psz_scheme[7];
+    const char psz_scheme[8];
     uint8_t    i_type;
 };
 
@@ -956,6 +956,7 @@ static int GuessType( const input_item_t *p_item )
         { "jack",   ITEM_TYPE_CARD },
         { "linsys", ITEM_TYPE_CARD },
         { "live",   ITEM_TYPE_NET }, /* livedotcom */
+        { "magnet", ITEM_TYPE_NET },
         { "mms",    ITEM_TYPE_NET },
         { "mtp",    ITEM_TYPE_DISC },
         { "ofdm",   ITEM_TYPE_CARD },
@@ -975,6 +976,7 @@ static int GuessType( const input_item_t *p_item )
         { "svcd",   ITEM_TYPE_DISC },
         { "tcp",    ITEM_TYPE_NET },
         { "terres", ITEM_TYPE_CARD }, /* terrestrial */
+        { "torrent",ITEM_TYPE_NET },
         { "udp",    ITEM_TYPE_NET },  /* udplite too */
         { "unsv",   ITEM_TYPE_NET },
         { "usdigi", ITEM_TYPE_CARD }, /* usdigital */
-- 
2.2.2




More information about the vlc-devel mailing list