提交 ac223c74 authored 作者: Brian West's avatar Brian West

if we happen to change codecs during a hold/unhold update the samples per packet…

if we happen to change codecs during a hold/unhold update the samples per packet in the process just in case we change rates.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10377 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b513c907
......@@ -1564,6 +1564,10 @@ switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force)
return SWITCH_STATUS_FALSE;
}
if (switch_rtp_ready(tech_pvt->rtp_session)) {
switch_rtp_set_default_samples_per_interval(tech_pvt->rtp_session, tech_pvt->read_codec.implementation->samples_per_packet);
}
tech_pvt->read_frame.rate = tech_pvt->rm_rate;
ms = tech_pvt->write_codec.implementation->microseconds_per_packet / 1000;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论