]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 8 Oct 2008 01:25:30 +0000 (01:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 8 Oct 2008 01:25:30 +0000 (01:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9889 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c
src/switch_core_io.c

index 788f9c4c88e4ebd1e05d0b740e8eed107df2d180..f7219d593e17adf2d28009a8b3d96cf3203e344b 100644 (file)
@@ -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);
index 25733f21e5907e0b88e52ffe142015bb2322082f..5a7ef474b736198e18c6163ca918e1346088e4ee 100644 (file)
@@ -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);