tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9889 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cd20278efb
commit
544254bf8c
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue