summaryrefslogtreecommitdiffstats
path: root/libmpdemux/open.c
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-19 09:02:52 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-19 09:02:52 +0000
commit0545d44d0731aaacc3443fad4bb91198acb17227 (patch)
tree8275615e9eb18fd723204bf255d73d80196660b2 /libmpdemux/open.c
parent0b8a6c0131b88f8e7b7db5e1621fc59857dce6a6 (diff)
downloadmpv-0545d44d0731aaacc3443fad4bb91198acb17227.tar.bz2
mpv-0545d44d0731aaacc3443fad4bb91198acb17227.tar.xz
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
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r--libmpdemux/open.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c
index c6fce78b0c..6a6f8c20fe 100644
--- a/libmpdemux/open.c
+++ b/libmpdemux/open.c
@@ -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){