Mercurial > mplayer.hg
changeset 25429:76941781b521
Protocol name should be case insensitive.
author | ulion |
---|---|
date | Wed, 19 Dec 2007 01:28:00 +0000 |
parents | 34a4cfe1bf6d |
children | 9e1bb05a4b17 |
files | stream/stream.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream.c Wed Dec 19 01:21:59 2007 +0000 +++ b/stream/stream.c Wed Dec 19 01:28:00 2007 +0000 @@ -229,7 +229,7 @@ l = strlen(sinfo->protocols[j]); // l == 0 => Don't do protocol matching (ie network and filenames) if((l == 0 && !strstr(filename, "://")) || - ((strncmp(sinfo->protocols[j],filename,l) == 0) && + ((strncasecmp(sinfo->protocols[j],filename,l) == 0) && (strncmp("://",filename+l,3) == 0))) { *file_format = DEMUXER_TYPE_UNKNOWN; s = open_stream_plugin(sinfo,filename,mode,options,file_format,&r,