Changeset 968ae4ef1e9a9373416bd0774d797fd4ea2eaa6c

Show
Ignore:
Timestamp:
09/23/04 22:52:20 (4 years ago)
Author:
Derk-Jan Hartman <hartman@videolan.org>
git-committer:
Derk-Jan Hartman <hartman@videolan.org> 1095972740 +0000
git-parent:

[6678167c68b87f36506daf9089605e95de7af045]

git-author:
Derk-Jan Hartman <hartman@videolan.org> 1095972740 +0000
Message:

* if http:// and mime == asf, and name doesn't contain asx (cause they have mime == asf too) then bail http access and let the mms access try.

( VLC now plays http:// urls which are actually mms:// streams and no longer handles asx files when the path doesn't contain "asx" )

* added the aacp (aacPlus) mime type and force the aac demux in that case. aacPlus still doesn't work. (decoder issue?)

* don't PLAYLIST_GO on a redirect. gave weird effects because the current item was still in the 'open' fase. The playlist is already playing, so there is no use in this option.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/http.c

    r9bfb547 r968ae4e  
    6969vlc_module_begin(); 
    7070    set_description( _("HTTP input") ); 
    71     set_capability( "access2", 0 ); 
     71    set_capability( "access2", 1 ); 
    7272 
    7373    add_string( "http-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT, 
     
    268268    } 
    269269 
     270    if( p_sys->psz_mime && !strcasecmp( p_sys->psz_mime, "video/x-ms-asf" ) ) 
     271    { 
     272        char *p = strcasestr( p_access->psz_path, "asx" ); 
     273 
     274        if( p == NULL ) 
     275        { 
     276            msg_Dbg( p_access, "This isn't http, it's mms" ); 
     277            goto error; 
     278        } 
     279    } 
     280 
    270281    if( ( p_sys->i_code == 301 || p_sys->i_code == 302 || 
    271282          p_sys->i_code == 303 || p_sys->i_code == 307 ) && 
     
    285296        p_playlist->pp_items[p_playlist->i_index]->b_autodeletion = VLC_TRUE; 
    286297        playlist_Add( p_playlist, p_sys->psz_location, p_sys->psz_location, 
    287                       PLAYLIST_INSERT | PLAYLIST_GO
     298                      PLAYLIST_INSERT
    288299                      p_playlist->i_index + 1 ); 
    289300        vlc_object_release( p_playlist ); 
     
    296307        if( p_sys->psz_mime && !strcasecmp( p_sys->psz_mime, "video/nsv" ) ) 
    297308            p_access->psz_demux = strdup( "nsv" ); 
     309        else if( p_sys->psz_mime && !strcasecmp( p_sys->psz_mime, "audio/aacp" ) ) 
     310            p_access->psz_demux = strdup( "aac" ); 
    298311        else 
    299312            p_access->psz_demux = strdup( "mp3" );