提交 e1e860a5 authored 作者: Anthony Minessale's avatar Anthony Minessale

tweak codec ptime bs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10580 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e64dca14
...@@ -722,8 +722,6 @@ static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_f ...@@ -722,8 +722,6 @@ static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_f
tech_pvt->mismatch_count++; tech_pvt->mismatch_count++;
} }
tech_pvt->last_codec_ms = codec_ms;
if (tech_pvt->mismatch_count > MAX_MISMATCH_FRAMES) { if (tech_pvt->mismatch_count > MAX_MISMATCH_FRAMES) {
if (switch_rtp_ready(tech_pvt->rtp_session) && codec_ms != tech_pvt->codec_ms) { if (switch_rtp_ready(tech_pvt->rtp_session) && codec_ms != tech_pvt->codec_ms) {
const char *val; const char *val;
......
...@@ -610,7 +610,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess ...@@ -610,7 +610,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
if ((session->write_codec && frame->codec && session->write_codec->implementation != frame->codec->implementation)) { if ((session->write_codec && frame->codec && session->write_codec->implementation != frame->codec->implementation)) {
if (session->write_codec->implementation->codec_id == frame->codec->implementation->codec_id) { if (session->write_codec->implementation->codec_id == frame->codec->implementation->codec_id) {
ptime_mismatch = TRUE; ptime_mismatch = TRUE;
if (!need_codec) { if (switch_test_flag(frame->codec, SWITCH_CODEC_FLAG_PASSTHROUGH) || switch_test_flag(session->read_codec, SWITCH_CODEC_FLAG_PASSTHROUGH)) {
status = perform_write(session, frame, flags, stream_id); status = perform_write(session, frame, flags, stream_id);
goto error; goto error;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论