提交 70a19cee authored 作者: Anthony Minessale's avatar Anthony Minessale

doh

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6558 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a2f591c5
......@@ -547,12 +547,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
write_frame->rate = session->write_resampler->to_rate;
}
if (!do_bugs) {
do_write = 1;
write_frame = frame;
goto done;
}
if (session->bugs) {
switch_media_bug_t *bp, *dp, *last = NULL;
......@@ -608,6 +602,12 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
switch_thread_rwlock_unlock(session->bug_rwlock);
}
if (do_bugs) {
do_write = 1;
write_frame = frame;
goto done;
}
if (session->write_codec) {
if (write_frame->datalen == session->write_codec->implementation->bytes_per_frame) {
perfect = TRUE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论