mirror of https://github.com/mpv-player/mpv
ftp is handled by the modular stream manager
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15479 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9afb8b3073
commit
e4b5ff6cf0
|
@ -464,6 +464,7 @@ if(strncmp("dvd://",filename,6) == 0){
|
||||||
strncmp("cdda://", filename, 7) && strncmp("cddb://", filename, 7) &&
|
strncmp("cdda://", filename, 7) && strncmp("cddb://", filename, 7) &&
|
||||||
strncmp("mpst://", filename, 7) && strncmp("tivo://", filename, 7) &&
|
strncmp("mpst://", filename, 7) && strncmp("tivo://", filename, 7) &&
|
||||||
strncmp("file://", filename, 7) && strncmp("cue://", filename, 6) &&
|
strncmp("file://", filename, 7) && strncmp("cue://", filename, 6) &&
|
||||||
|
strncmp("ftp://", filename, 6) &&
|
||||||
strstr(filename, "://")) {
|
strstr(filename, "://")) {
|
||||||
url = url_new(filename);
|
url = url_new(filename);
|
||||||
}
|
}
|
||||||
|
@ -507,7 +508,6 @@ if(strncmp("dvd://",filename,6) == 0){
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
stream=new_stream(f,STREAMTYPE_STREAM);
|
stream=new_stream(f,STREAMTYPE_STREAM);
|
||||||
if (strcmp(url->protocol, "ftp")) { // ftp is handled somewhere else
|
|
||||||
if( streaming_start( stream, file_format, url )<0){
|
if( streaming_start( stream, file_format, url )<0){
|
||||||
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename);
|
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename);
|
||||||
url_free(url);
|
url_free(url);
|
||||||
|
@ -520,7 +520,6 @@ if(strncmp("dvd://",filename,6) == 0){
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//============ Open STDIN or plain FILE ============
|
//============ Open STDIN or plain FILE ============
|
||||||
|
|
Loading…
Reference in New Issue