提交 34551801 authored 作者: Michael Jerris's avatar Michael Jerris

tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1133 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d91f8ef3
...@@ -579,7 +579,9 @@ static switch_status channel_read_frame(switch_core_session *session, switch_fra ...@@ -579,7 +579,9 @@ static switch_status channel_read_frame(switch_core_session *session, switch_fra
assert(tech_pvt != NULL); assert(tech_pvt != NULL);
assert(tech_pvt->rtp_session != NULL); if (!tech_pvt->rtp_session) {
return SWITCH_STATUS_FALSE;
}
tech_pvt->read_frame.datalen = 0; tech_pvt->read_frame.datalen = 0;
switch_set_flag(tech_pvt, TFLAG_READING); switch_set_flag(tech_pvt, TFLAG_READING);
...@@ -587,8 +589,6 @@ static switch_status channel_read_frame(switch_core_session *session, switch_fra ...@@ -587,8 +589,6 @@ static switch_status channel_read_frame(switch_core_session *session, switch_fra
bytes = tech_pvt->read_codec.implementation->encoded_bytes_per_frame; bytes = tech_pvt->read_codec.implementation->encoded_bytes_per_frame;
samples = tech_pvt->read_codec.implementation->samples_per_frame; samples = tech_pvt->read_codec.implementation->samples_per_frame;
ms = tech_pvt->read_codec.implementation->microseconds_per_frame; ms = tech_pvt->read_codec.implementation->microseconds_per_frame;
assert(tech_pvt->rtp_session != NULL);
tech_pvt->read_frame.datalen = 0; tech_pvt->read_frame.datalen = 0;
...@@ -675,8 +675,9 @@ static switch_status channel_write_frame(switch_core_session *session, switch_fr ...@@ -675,8 +675,9 @@ static switch_status channel_write_frame(switch_core_session *session, switch_fr
tech_pvt = switch_core_session_get_private(session); tech_pvt = switch_core_session_get_private(session);
assert(tech_pvt != NULL); assert(tech_pvt != NULL);
assert(tech_pvt->rtp_session != NULL); if (!tech_pvt->rtp_session) {
return SWITCH_STATUS_FALSE;
}
if (!switch_test_flag(tech_pvt, TFLAG_RTP_READY)) { if (!switch_test_flag(tech_pvt, TFLAG_RTP_READY)) {
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论