comparison libmpdemux/open.c @ 10735:8a10d5d0ce86

serious bugs - 1l absinth (changed to absinth against cola inflation)
author alex
date Sun, 31 Aug 2003 18:51:05 +0000
parents f0cddd635519
children fb66c426cd91
comparison
equal deleted inserted replaced
10734:b105d7aba10d 10735:8a10d5d0ce86
475 } 475 }
476 #endif 476 #endif
477 477
478 // FIXME: to avoid nonsense error messages... 478 // FIXME: to avoid nonsense error messages...
479 if (strncmp("tv://", filename, 5) && strncmp("mf://", filename, 5) && 479 if (strncmp("tv://", filename, 5) && strncmp("mf://", filename, 5) &&
480 strncmp("vcd://", filename, 6)) 480 strncmp("vcd://", filename, 6) && strncmp("dvb://", filename, 6) &&
481 strstr(filename, "://"))
481 url = url_new(filename); 482 url = url_new(filename);
482 if(url) { 483 if(url) {
483 if (strcmp(url->protocol, "smb")==0){ 484 if (strcmp(url->protocol, "smb")==0){
484 #ifdef LIBSMBCLIENT 485 #ifdef LIBSMBCLIENT
485 486
511 url_free(url); 512 url_free(url);
512 stream=new_stream(f,STREAMTYPE_SMB); 513 stream=new_stream(f,STREAMTYPE_SMB);
513 stream->end_pos=len; 514 stream->end_pos=len;
514 return stream; 515 return stream;
515 #else 516 #else
516 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_SMBNotCompiled,filename); 517 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_SMBNotCompiled);
517 return NULL; 518 return NULL;
518 #endif 519 #endif
519 } 520 }
520 stream=new_stream(f,STREAMTYPE_STREAM); 521 stream=new_stream(f,STREAMTYPE_STREAM);
521 if( streaming_start( stream, file_format, url )<0){ 522 if( streaming_start( stream, file_format, url )<0){