diff options
author | 2003-08-25 21:40:38 +0000 | |
---|---|---|
committer | 2003-08-25 21:40:38 +0000 | |
commit | fa0f8ea2a4390a09996df1608a8111ff3b54c6a7 (patch) | |
tree | 5d457c58b67eb986bbb00e6bdf72f2cc37c386dc | |
parent | 0fc1e3cd3f67700bb4f3f684908c9a59749d7dba (diff) |
added a workaround to get rid of 'Unable to open URL: mf://*.jpg' and such nonsense (tv,mf,vcd)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10698 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/open.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c index 8dca73ad24..284b3adb2c 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -475,7 +475,10 @@ if(strncmp("dvd://",filename,6) == 0){ } #endif - url = url_new(filename); + // FIXME: to avoid nonsense error messages... + if (strncmp("tv://", filename, 5) && strncmp("mf://", filename, 5) && + strncmp("vcd://", filename, 6)) + url = url_new(filename); if(url) { if (strcmp(url->protocol, "smb")==0){ #ifdef LIBSMBCLIENT |