[Freeswitch-trunk] [commit] r6657 - freeswitch/trunk/src/mod/applications/mod_conference

Freeswitch SVN anthm at freeswitch.org
Tue Dec 11 12:55:12 EST 2007


Author: anthm
Date: Tue Dec 11 12:55:12 2007
New Revision: 6657

Modified:
   freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
smaller buffer

Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	Tue Dec 11 12:55:12 2007
@@ -716,8 +716,8 @@
 	uint8_t *file_frame;
 	uint8_t *async_file_frame;
 
-	file_frame = switch_core_alloc(conference->pool, CONF_BUFFER_SIZE);
-	async_file_frame = switch_core_alloc(conference->pool, CONF_BUFFER_SIZE);
+	file_frame = switch_core_alloc(conference->pool, SWITCH_RECOMMENDED_BUFFER_SIZE);
+	async_file_frame = switch_core_alloc(conference->pool, SWITCH_RECOMMENDED_BUFFER_SIZE);
 
 
 	if (switch_core_timer_init(&timer, conference->timer_name, conference->interval, samples, conference->pool) == SWITCH_STATUS_SUCCESS) {
@@ -1586,7 +1586,7 @@
 	while (switch_test_flag(member, MFLAG_RUNNING) && switch_test_flag(member, MFLAG_ITHREAD)
 		   && switch_channel_ready(channel)) {
 		char dtmf[128] = "";
-		uint8_t file_frame[CONF_BUFFER_SIZE] = { 0 };
+		uint8_t file_frame[SWITCH_RECOMMENDED_BUFFER_SIZE] = { 0 };
 		switch_size_t file_data_len = csamples * 2;
 		switch_size_t file_sample_len = csamples;
 		char *digit;



More information about the Freeswitch-trunk mailing list