[svn-commits] dvossel: branch dvossel/fixtheworld_phase1_step3 r301776 - /team/dvossel/fixt...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jan 13 14:35:36 CST 2011


Author: dvossel
Date: Thu Jan 13 14:35:32 2011
New Revision: 301776

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=301776
Log:
update to codec_alaw

Modified:
    team/dvossel/fixtheworld_phase1_step3/codecs/codec_alaw.c

Modified: team/dvossel/fixtheworld_phase1_step3/codecs/codec_alaw.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/fixtheworld_phase1_step3/codecs/codec_alaw.c?view=diff&rev=301776&r1=301775&r2=301776
==============================================================================
--- team/dvossel/fixtheworld_phase1_step3/codecs/codec_alaw.c (original)
+++ team/dvossel/fixtheworld_phase1_step3/codecs/codec_alaw.c Thu Jan 13 14:35:32 2011
@@ -98,12 +98,6 @@
 {
 	int res;
 
-	ast_format_set(&lintoalaw.src_format, AST_FORMAT_SLINEAR, 0);
-	ast_format_set(&lintoalaw.dst_format, AST_FORMAT_ALAW, 0);
-
-	ast_format_set(&alawtolin.src_format, AST_FORMAT_ALAW, 0);
-	ast_format_set(&alawtolin.dst_format, AST_FORMAT_SLINEAR, 0);
-
 	res = ast_unregister_translator(&lintoalaw);
 	res |= ast_unregister_translator(&alawtolin);
 
@@ -113,6 +107,12 @@
 static int load_module(void)
 {
 	int res;
+
+	ast_format_set(&lintoalaw.src_format, AST_FORMAT_SLINEAR, 0);
+	ast_format_set(&lintoalaw.dst_format, AST_FORMAT_ALAW, 0);
+
+	ast_format_set(&alawtolin.src_format, AST_FORMAT_ALAW, 0);
+	ast_format_set(&alawtolin.dst_format, AST_FORMAT_SLINEAR, 0);
 
 	res = ast_register_translator(&alawtolin);
 	if (!res)




More information about the svn-commits mailing list