提交 c8ae02bb authored 作者: Moises Silva's avatar Moises Silva 提交者: Ken Rice

Fix timestamps in mod_bert broken by the cpu improvements refactoring

上级 fa2133b6
...@@ -203,12 +203,6 @@ SWITCH_STANDARD_APP(bert_test_function) ...@@ -203,12 +203,6 @@ SWITCH_STANDARD_APP(bert_test_function)
write_frame.datalen = read_impl.encoded_bytes_per_packet; write_frame.datalen = read_impl.encoded_bytes_per_packet;
write_frame.samples = read_impl.samples_per_packet; write_frame.samples = read_impl.samples_per_packet;
if (timer_name) {
write_frame.timestamp = bert.timer.samplecount;
} else {
/* the playback() app does not set write_frame.timestamp unless a timer is used, what's the catch? does it matter? */
}
for (;;) { for (;;) {
if (!switch_channel_ready(channel)) { if (!switch_channel_ready(channel)) {
...@@ -222,6 +216,8 @@ SWITCH_STANDARD_APP(bert_test_function) ...@@ -222,6 +216,8 @@ SWITCH_STANDARD_APP(bert_test_function)
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Failed to step on timer!\n"); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Failed to step on timer!\n");
break; break;
} }
/* the playback() app does not set write_frame.timestamp unless a timer is used, what's the catch? does it matter? */
write_frame.timestamp = bert.timer.samplecount;
} }
if (bert.output_debug_f) { if (bert.output_debug_f) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论