--- main\libmpdemux\http.c Wed Sep 28 23:43:24 2005 +++ main.new\libmpdemux\http.c Fri Oct 14 14:21:39 2005 @@ -34,6 +34,8 @@ extern int http_seek(stream_t *stream, off_t pos); +static int http2; ///< bool indicating whether we're in http1(0) or http2(1) + typedef struct { unsigned metaint; unsigned metapos; @@ -812,7 +814,7 @@ } // Not found in the mime type table, don't fail, // we should try raw HTTP - return seekable; + if (http2) return seekable; // Redirect case 301: // Permanently case 302: // Temporarily @@ -868,6 +870,7 @@ int seekable=0; URL_t *url; + http2 = 0; stream->streaming_ctrl = streaming_ctrl_new(); if( stream->streaming_ctrl==NULL ) { return STREAM_ERROR; @@ -879,7 +882,7 @@ mp_msg(MSGT_OPEN, MSGL_INFO, "STREAM_HTTP(1), URL: %s\n", stream->url); seekable = http_streaming_start(stream, file_format); - if((seekable < 0) || (*file_format == DEMUXER_TYPE_ASF)) { + if(seekable < 0) { streaming_ctrl_free(stream->streaming_ctrl); stream->streaming_ctrl = NULL; return STREAM_UNSUPORTED; @@ -892,6 +895,7 @@ int seekable=0; URL_t *url; + http2 = 1; stream->streaming_ctrl = streaming_ctrl_new(); if( stream->streaming_ctrl==NULL ) { return STREAM_ERROR;