[Asterisk-cvs] asterisk frame.c,1.41,1.42

anthm at lists.digium.com anthm at lists.digium.com
Tue Dec 7 19:57:49 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv31067

Modified Files:
	frame.c 
Log Message:
fix case sensitivity issue in codecs

Index: frame.c
===================================================================
RCS file: /usr/cvsroot/asterisk/frame.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- frame.c	3 Dec 2004 23:46:09 -0000	1.41
+++ frame.c	8 Dec 2004 00:55:31 -0000	1.42
@@ -499,11 +499,11 @@
 {
 	int x = 0, all = 0, format = 0;
 
-	all = strcmp(name, "all") ? 0 : 1;
+	all = strcasecmp(name, "all") ? 0 : 1;
 	for (x = 0 ; x < sizeof(AST_FORMAT_LIST) / sizeof(struct ast_format_list) ; x++) {
 		if(AST_FORMAT_LIST[x].visible && (all || 
-										  !strcmp(AST_FORMAT_LIST[x].name,name) ||
-										  !strcmp(AST_FORMAT_LIST[x].name,ast_expand_codec_alias(name)))) {
+										  !strcasecmp(AST_FORMAT_LIST[x].name,name) ||
+										  !strcasecmp(AST_FORMAT_LIST[x].name,ast_expand_codec_alias(name)))) {
 			format |= AST_FORMAT_LIST[x].bits;
 			if(!all)
 				break;




More information about the svn-commits mailing list