From 544254bf8c9f126f5b8bc5040b3dc8da239b15bc Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 8 Oct 2008 01:25:30 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9889 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 2 +- src/switch_core_io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 788f9c4c88..f7219d593e 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -232,7 +232,7 @@ SWITCH_STANDARD_API(eval_function) switch_core_session_rwunlock(session); } } - + printf("WTF [%s\n", input); expanded = switch_event_expand_headers(event, input); stream->write_function(stream, "%s", expanded); diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 25733f21e5..5a7ef474b7 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -126,7 +126,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi 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);