Mercurial > mplayer.hg
changeset 3603:baa8b0c0ff30
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.
author | bertrand |
---|---|
date | Wed, 19 Dec 2001 09:02:52 +0000 |
parents | 6a96727ea729 |
children | 6bd312199a75 |
files | libmpdemux/open.c |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/open.c Wed Dec 19 07:40:28 2001 +0000 +++ b/libmpdemux/open.c Wed Dec 19 09:02:52 2001 +0000 @@ -373,12 +373,6 @@ 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){