Protocol name should be case insensitive.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25457 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-12-19 01:28:00 +00:00
parent 8a36c1f6ae
commit 88cd8566b5
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ stream_t* open_stream_full(char* filename,int mode, char** options, int* file_fo
l = strlen(sinfo->protocols[j]); l = strlen(sinfo->protocols[j]);
// l == 0 => Don't do protocol matching (ie network and filenames) // l == 0 => Don't do protocol matching (ie network and filenames)
if((l == 0 && !strstr(filename, "://")) || if((l == 0 && !strstr(filename, "://")) ||
((strncmp(sinfo->protocols[j],filename,l) == 0) && ((strncasecmp(sinfo->protocols[j],filename,l) == 0) &&
(strncmp("://",filename+l,3) == 0))) { (strncmp("://",filename+l,3) == 0))) {
*file_format = DEMUXER_TYPE_UNKNOWN; *file_format = DEMUXER_TYPE_UNKNOWN;
s = open_stream_plugin(sinfo,filename,mode,options,file_format,&r, s = open_stream_plugin(sinfo,filename,mode,options,file_format,&r,