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 efbdbd6..1a278d7 100644 (file)
@@ -93,6 +93,7 @@ vlc_module_begin();
     add_shortcut( "http" );
     add_shortcut( "https" );
     add_shortcut( "unsv" );
     add_shortcut( "http" );
     add_shortcut( "https" );
     add_shortcut( "unsv" );
+    add_shortcut( "itpc" ); /* iTunes Podcast */
     set_callbacks( Open, Close );
 vlc_module_end();
 
     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" );
     }
         /* 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 ) )
     else if( p_sys->psz_mime &&
              !strncasecmp( p_sys->psz_mime, "application/xspf+xml", 20 ) &&
              ( memchr( " ;\t", p_sys->psz_mime[20], 4 ) != NULL ) )