[Freeswitch-svn] [commit] r9889 - in freeswitch/trunk/src: . mod/applications/mod_commands

Freeswitch SVN anthm at freeswitch.org
Tue Oct 7 21:25:31 EDT 2008


Author: anthm
Date: Tue Oct  7 21:25:30 2008
New Revision: 9889

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
   freeswitch/trunk/src/switch_core_io.c

Log:
tweak

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Tue Oct  7 21:25:30 2008
@@ -232,7 +232,7 @@
 			switch_core_session_rwunlock(session);
 		}
 	}
-
+	printf("WTF [%s\n", input);
 	expanded = switch_event_expand_headers(event, input);
 	
 	stream->write_function(stream, "%s", expanded);

Modified: freeswitch/trunk/src/switch_core_io.c
==============================================================================
--- freeswitch/trunk/src/switch_core_io.c	(original)
+++ freeswitch/trunk/src/switch_core_io.c	Tue Oct  7 21:25:30 2008
@@ -126,7 +126,7 @@
 	if (session->read_codec && session->track_duration) {
 		if (session->read_frame_count == 0) {
 			switch_event_t *event;
-			session->read_frame_count = (session->read_codec->implementation->samples_per_second / 
+			session->read_frame_count = (session->read_codec->implementation->actual_samples_per_second / 
 										 session->read_codec->implementation->samples_per_frame) * session->track_duration;
 
 			switch_event_create(&event, SWITCH_EVENT_SESSION_HEARTBEAT);



More information about the Freeswitch-svn mailing list