Mercurial > mplayer.hg
comparison libmpdemux/open.c @ 15478:868fa16142df
ftp is handled by the modular stream manager
author | nicodvb |
---|---|
date | Sun, 15 May 2005 08:47:55 +0000 |
parents | 5eb4994a691f |
children | 15b5b56d809f |
comparison
equal
deleted
inserted
replaced
15477:15f012150986 | 15478:868fa16142df |
---|---|
462 if (strncmp("tv://", filename, 5) && strncmp("mf://", filename, 5) && | 462 if (strncmp("tv://", filename, 5) && strncmp("mf://", filename, 5) && |
463 strncmp("vcd://", filename, 6) && strncmp("dvb://", filename, 6) && | 463 strncmp("vcd://", filename, 6) && strncmp("dvb://", filename, 6) && |
464 strncmp("cdda://", filename, 7) && strncmp("cddb://", filename, 7) && | 464 strncmp("cdda://", filename, 7) && strncmp("cddb://", filename, 7) && |
465 strncmp("mpst://", filename, 7) && strncmp("tivo://", filename, 7) && | 465 strncmp("mpst://", filename, 7) && strncmp("tivo://", filename, 7) && |
466 strncmp("file://", filename, 7) && strncmp("cue://", filename, 6) && | 466 strncmp("file://", filename, 7) && strncmp("cue://", filename, 6) && |
467 strncmp("ftp://", filename, 6) && | |
467 strstr(filename, "://")) { | 468 strstr(filename, "://")) { |
468 url = url_new(filename); | 469 url = url_new(filename); |
469 } | 470 } |
470 if(url) { | 471 if(url) { |
471 if (strcmp(url->protocol, "smb")==0){ | 472 if (strcmp(url->protocol, "smb")==0){ |
505 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_SMBNotCompiled); | 506 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_SMBNotCompiled); |
506 return NULL; | 507 return NULL; |
507 #endif | 508 #endif |
508 } | 509 } |
509 stream=new_stream(f,STREAMTYPE_STREAM); | 510 stream=new_stream(f,STREAMTYPE_STREAM); |
510 if (strcmp(url->protocol, "ftp")) { // ftp is handled somewhere else | |
511 if( streaming_start( stream, file_format, url )<0){ | 511 if( streaming_start( stream, file_format, url )<0){ |
512 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename); | 512 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename); |
513 url_free(url); | 513 url_free(url); |
514 url = NULL; | 514 url = NULL; |
515 return NULL; | 515 return NULL; |
517 mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ConnToServer, url->hostname ); | 517 mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ConnToServer, url->hostname ); |
518 url_free(url); | 518 url_free(url); |
519 url = NULL; | 519 url = NULL; |
520 return stream; | 520 return stream; |
521 } | 521 } |
522 } | |
523 } | 522 } |
524 #endif | 523 #endif |
525 | 524 |
526 //============ Open STDIN or plain FILE ============ | 525 //============ Open STDIN or plain FILE ============ |
527 | 526 |