Removed unnecessary check after the protocol autodetection.

Now it will try to start streaming even if the autodetection failed.
This will allow to work with web server that doesn't report a
proper mime-type.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3604 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
bertrand 2001-12-19 09:02:52 +00:00
parent 0b8a6c0131
commit 0545d44d07
1 changed files with 0 additions and 6 deletions

View File

@ -373,12 +373,6 @@ tv_err:
url = url_new(filename);
if(url) {
(*file_format)=autodetectProtocol( url, &f );
if( (*file_format)==DEMUXER_TYPE_UNKNOWN ) {
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename);
url_free(url);
return NULL;
}
//if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, url->url); return NULL; }
mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ConnToServer, url->hostname );
stream=new_stream(f,STREAMTYPE_STREAM);
if( streaming_start( stream , url, *file_format )<0){