mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 13:47:04 +00:00
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:
parent
0b8a6c0131
commit
0545d44d07
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user