summaryrefslogtreecommitdiffstats
path: root/libmpdemux/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r--libmpdemux/open.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c
index 284b3adb2c..4a23f00aa8 100644
--- a/libmpdemux/open.c
+++ b/libmpdemux/open.c
@@ -477,7 +477,8 @@ if(strncmp("dvd://",filename,6) == 0){
// FIXME: to avoid nonsense error messages...
if (strncmp("tv://", filename, 5) && strncmp("mf://", filename, 5) &&
- strncmp("vcd://", filename, 6))
+ strncmp("vcd://", filename, 6) && strncmp("dvb://", filename, 6) &&
+ strstr(filename, "://"))
url = url_new(filename);
if(url) {
if (strcmp(url->protocol, "smb")==0){
@@ -513,7 +514,7 @@ if(strncmp("dvd://",filename,6) == 0){
stream->end_pos=len;
return stream;
#else
- mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_SMBNotCompiled,filename);
+ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_SMBNotCompiled);
return NULL;
#endif
}