]> git.sesse.net Git - vlc/commitdiff
Add support for "iTunes podcast" (example: itpc://www.apple.com/trailers/home/podcast...
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 11 Sep 2007 21:16:03 +0000 (21:16 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 11 Sep 2007 21:16:03 +0000 (21:16 +0000)
modules/access/http.c

index efbdbd68815dd3e2851de7b354caf79847685a85..1a278d75b10f8e3f5407ad28cd857bcd0c8abd92 100644 (file)
@@ -93,6 +93,7 @@ vlc_module_begin();
     add_shortcut( "http" );
     add_shortcut( "https" );
     add_shortcut( "unsv" );
+    add_shortcut( "itpc" ); /* iTunes Podcast */
     set_callbacks( Open, Close );
 vlc_module_end();
 
@@ -399,6 +400,10 @@ connect:
         /* Grrrr! detect ultravox server and force NSV demuxer */
         p_access->psz_demux = strdup( "nsv" );
     }
+    else if( !strcmp( p_access->psz_access, "itpc" ) )
+    {
+        p_access->psz_demux = strdup( "podcast" );
+    }
     else if( p_sys->psz_mime &&
              !strncasecmp( p_sys->psz_mime, "application/xspf+xml", 20 ) &&
              ( memchr( " ;\t", p_sys->psz_mime[20], 4 ) != NULL ) )