Mercurial > mplayer.hg
changeset 10697:f0cddd635519
added a workaround to get rid of 'Unable to open URL: mf://*.jpg' and such nonsense (tv,mf,vcd)
author | alex |
---|---|
date | Mon, 25 Aug 2003 21:40:38 +0000 |
parents | 73702d2f93ab |
children | 7ab88b24cb81 |
files | libmpdemux/open.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/open.c Mon Aug 25 21:33:39 2003 +0000 +++ b/libmpdemux/open.c Mon Aug 25 21:40:38 2003 +0000 @@ -475,7 +475,10 @@ } #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