[Asterisk-cvs] asterisk frame.c,1.36.2.2,1.36.2.3

russell at lists.digium.com russell at lists.digium.com
Wed Dec 8 01:20:02 CST 2004


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

Modified Files:
      Tag: v1-0
	frame.c 
Log Message:
fix case sensitivity in codec prefs


Index: frame.c
===================================================================
RCS file: /usr/cvsroot/asterisk/frame.c,v
retrieving revision 1.36.2.2
retrieving revision 1.36.2.3
diff -u -d -r1.36.2.2 -r1.36.2.3
--- frame.c	5 Dec 2004 05:17:50 -0000	1.36.2.2
+++ frame.c	8 Dec 2004 06:17:43 -0000	1.36.2.3
@@ -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