[MPlayer-cvslog] r25457 - trunk/stream/stream.c

ulion subversion at mplayerhq.hu
Wed Dec 19 02:28:01 CET 2007


Author: ulion
Date: Wed Dec 19 02:28:00 2007
New Revision: 25457

Log:
Protocol name should be case insensitive.


Modified:
   trunk/stream/stream.c

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	(original)
+++ trunk/stream/stream.c	Wed Dec 19 02:28:00 2007
@@ -229,7 +229,7 @@ stream_t* open_stream_full(char* filenam
       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,



More information about the MPlayer-cvslog mailing list