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

Freeswitch SVN anthm at freeswitch.org
Wed Mar 21 13:09:39 EDT 2007


Author: anthm
Date: Wed Mar 21 13:09:39 2007
New Revision: 4715

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

Log:
fix typos

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	Wed Mar 21 13:09:39 2007
@@ -1466,7 +1466,7 @@
 							   samples, 
 							   NULL) == SWITCH_STATUS_SUCCESS) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "setup timer %s success interval: %u  samples: %u\n", 
-						  member->conference->timer_name, member->conference->interval, samples);	
+						  member->conference->timer_name, interval, samples);	
 	} else {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Timer Setup Failed.  Conference Cannot Start\n");	
 		return;
@@ -4046,10 +4046,12 @@
                                NULL, 
                                member.pool) == SWITCH_STATUS_SUCCESS) {
         switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Raw Codec Activation Success L16@%uhz 1 channel %dms\n", 
-                          conference->rate, conference->interval);
+                          read_codec->implementation->samples_per_second,
+						  read_codec->implementation->microseconds_per_frame / 1000);
     } else {
         switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Raw Codec Activation Failed L16@%uhz 1 channel %dms\n", 
-                          conference->rate, conference->interval);
+						  read_codec->implementation->samples_per_second,
+						  read_codec->implementation->microseconds_per_frame / 1000);
         flags = 0;
         goto done;
     }
@@ -4075,17 +4077,19 @@
     if (switch_core_codec_init(&member.write_codec, 
                                "L16", 
                                NULL, 
-                               conference->rate, 
-                               conference->interval, 
+                               read_codec->implementation->samples_per_second, 
+                               read_codec->implementation->microseconds_per_frame / 1000, 
                                1, 
                                SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE, 
                                NULL, 
                                member.pool) == SWITCH_STATUS_SUCCESS) {
         switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Raw Codec Activation Success L16@%uhz 1 channel %dms\n", 
-                          conference->rate, conference->interval);
+						  read_codec->implementation->samples_per_second,
+						  read_codec->implementation->microseconds_per_frame / 1000);
     } else {
         switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Raw Codec Activation Failed L16@%uhz 1 channel %dms\n", 
-                          conference->rate, conference->interval);
+						  read_codec->implementation->samples_per_second,
+						  read_codec->implementation->microseconds_per_frame / 1000);
         flags = 0;
         goto codec_done2;
     }



More information about the Freeswitch-svn mailing list