[asterisk-commits] oej: branch oej/roibus-comfort-noise-trunk r377009 - /team/oej/roibus-comfort...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 3 06:32:00 CST 2012


Author: oej
Date: Mon Dec  3 06:31:04 2012
New Revision: 377009

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377009
Log:
It compiles. It works.

Modified:
    team/oej/roibus-comfort-noise-trunk/main/channel.c

Modified: team/oej/roibus-comfort-noise-trunk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/roibus-comfort-noise-trunk/main/channel.c?view=diff&rev=377009&r1=377008&r2=377009
==============================================================================
--- team/oej/roibus-comfort-noise-trunk/main/channel.c (original)
+++ team/oej/roibus-comfort-noise-trunk/main/channel.c Mon Dec  3 06:31:04 2012
@@ -8888,7 +8888,7 @@
 };
 
 struct ast_noise_generator {
-	int old_write_format;
+	struct ast_format old_write_format;
 	float level;
 };
 
@@ -9054,7 +9054,7 @@
 		return NULL;
 	}
 	dest->level = src->level;
-	dest->old_write_format = src->old_write_format;
+	ast_format_copy(&dest->old_write_format,&src->old_write_format);
 	return dest;
 }
 
@@ -9093,7 +9093,7 @@
 		ast_channel_datastore_add(chan, cng_datastore);
 	}
 	new_cng->level = level;
-	new_cng->old_write_format = old_write_format;
+	ast_format_copy(&new_cng->old_write_format, old_write_format);
 
 	return 0;
 }




More information about the asterisk-commits mailing list