[asterisk-commits] dvossel: branch dvossel/fixtheworld_phase2 r307538 - /team/dvossel/fixtheworl...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 10 16:54:58 CST 2011


Author: dvossel
Date: Thu Feb 10 16:54:55 2011
New Revision: 307538

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=307538
Log:
Fixes an error in the naming conventions used for the speex32 translator.

Modified:
    team/dvossel/fixtheworld_phase2/codecs/codec_speex.c

Modified: team/dvossel/fixtheworld_phase2/codecs/codec_speex.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/fixtheworld_phase2/codecs/codec_speex.c?view=diff&rev=307538&r1=307537&r2=307538
==============================================================================
--- team/dvossel/fixtheworld_phase2/codecs/codec_speex.c (original)
+++ team/dvossel/fixtheworld_phase2/codecs/codec_speex.c Thu Feb 10 16:54:55 2011
@@ -386,8 +386,8 @@
 	.buf_size = BUFFER_SAMPLES * 2, /* XXX maybe a lot less ? */
 };
 
-static struct ast_translator speexuwbtospeexuwb = {
-	.name = "speexuwbtospeexuwb", 
+static struct ast_translator speexuwbtolin32 = {
+	.name = "speexuwbtolin32", 
 	.newpvt = speexuwbtolin32_new,
 	.framein = speextolin_framein,
 	.destroy = speextolin_destroy,
@@ -518,7 +518,7 @@
 	res |= ast_unregister_translator(&lintospeex);
 	res |= ast_unregister_translator(&speexwbtolin16);
 	res |= ast_unregister_translator(&lin16tospeexwb);
-	res |= ast_unregister_translator(&speexuwbtospeexuwb);
+	res |= ast_unregister_translator(&speexuwbtolin32);
 	res |= ast_unregister_translator(&lin32tospeexuwb);
 
 
@@ -545,8 +545,8 @@
 	ast_format_set(&lin16tospeexwb.src_format, AST_FORMAT_SLINEAR16, 0);
 	ast_format_set(&lin16tospeexwb.dst_format, AST_FORMAT_SPEEX16, 0);
 
-	ast_format_set(&speexuwbtospeexuwb.src_format, AST_FORMAT_SPEEX32, 0);
-	ast_format_set(&speexuwbtospeexuwb.dst_format, AST_FORMAT_SLINEAR32, 0);
+	ast_format_set(&speexuwbtolin32.src_format, AST_FORMAT_SPEEX32, 0);
+	ast_format_set(&speexuwbtolin32.dst_format, AST_FORMAT_SLINEAR32, 0);
 
 	ast_format_set(&lin32tospeexuwb.src_format, AST_FORMAT_SLINEAR32, 0);
 	ast_format_set(&lin32tospeexuwb.dst_format, AST_FORMAT_SPEEX32, 0);
@@ -555,7 +555,7 @@
 	res |= ast_register_translator(&lintospeex);
 	res |= ast_register_translator(&speexwbtolin16);
 	res |= ast_register_translator(&lin16tospeexwb);
-	res |= ast_register_translator(&speexuwbtospeexuwb);
+	res |= ast_register_translator(&speexuwbtolin32);
 	res |= ast_register_translator(&lin32tospeexuwb);
 
 




More information about the asterisk-commits mailing list