[vlc-devel] commit: Add missing non-file types ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jul 12 15:41:41 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 12 16:41:15 2009 +0300| [b4edd4e5fe32331cba3ac484e5777c05a65eaa00] | committer: Rémi Denis-Courmont 

Add missing non-file types

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

 src/input/item.c |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/src/input/item.c b/src/input/item.c
index 4259c47..b37a8b7 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -829,22 +829,49 @@ static int GuessType( const input_item_t *p_item )
 {
     static const struct item_type_entry tab[] =
     {   /* /!\ Alphabetical order /!\ */
+        /* Short match work, not just exact match */
+        { "alsa",   ITEM_TYPE_CARD },
+        { "atsc",   ITEM_TYPE_CARD },
+        { "bd",     ITEM_TYPE_DISC },
+        { "cable",  ITEM_TYPE_CARD },
         { "cdda",   ITEM_TYPE_CDDA },
+        { "dc1394", ITEM_TYPE_CARD },
+        { "dccp",   ITEM_TYPE_NET },
+        { "dir",    ITEM_TYPE_DIRECTORY },
         { "dshow",  ITEM_TYPE_CARD },
+        { "dv",     ITEM_TYPE_CARD },
         { "dvb",    ITEM_TYPE_CARD },
         { "dvd",    ITEM_TYPE_DISC },
         { "ftp",    ITEM_TYPE_NET },
         { "http",   ITEM_TYPE_NET },
+        { "icyx",   ITEM_TYPE_NET },
+        { "itpc",   ITEM_TYPE_NET },
+        { "jack",   ITEM_TYPE_CARD },
+        { "live",   ITEM_TYPE_NET }, /* livedotcom */
         { "mms",    ITEM_TYPE_NET },
+        { "mtp",    ITEM_TYPE_DISC },
+        { "ofdm",   ITEM_TYPE_CARD },
+        { "oss",    ITEM_TYPE_CARD },
+        { "pnm",    ITEM_TYPE_NET },
         { "pvr",    ITEM_TYPE_CARD },
+        { "qam",    ITEM_TYPE_CARD },
         { "qpsk",   ITEM_TYPE_CARD },
-        { "rtp",    ITEM_TYPE_NET },
-        { "rtsp",   ITEM_TYPE_NET },
+        { "qtcapt", ITEM_TYPE_CARD }, /* qtcapture */
+        { "raw139", ITEM_TYPE_CARD }, /* raw1394 */
+        { "rt",     ITEM_TYPE_NET }, /* rtp, rtsp, rtmp */
+        { "satell", ITEM_TYPE_CARD }, /* sattelite */
+        { "screen", ITEM_TYPE_CARD },
         { "sdp",    ITEM_TYPE_NET },
         { "smb",    ITEM_TYPE_NET },
-        { "udp",    ITEM_TYPE_NET },
+        { "svcd",   ITEM_TYPE_DISC },
+        { "tcp",    ITEM_TYPE_NET },
+        { "terres", ITEM_TYPE_CARD }, /* terrestrial */
+        { "udp",    ITEM_TYPE_NET },  /* udplite too */
+        { "unsv",   ITEM_TYPE_NET },
+        { "usdigi", ITEM_TYPE_CARD }, /* usdigital */
         { "v4l",    ITEM_TYPE_CARD },
         { "vcd",    ITEM_TYPE_DISC },
+        { "window", ITEM_TYPE_CARD },
     };
     const struct item_type_entry *e;
 




More information about the vlc-devel mailing list