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

FS-4700 FS-4701 --resolve

上级 2f9304dc
...@@ -244,12 +244,18 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_read(switch_media_bug_t *b ...@@ -244,12 +244,18 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_read(switch_media_bug_t *b
if (switch_core_session_get_partner(bug->session, &other_session) == SWITCH_STATUS_SUCCESS) { if (switch_core_session_get_partner(bug->session, &other_session) == SWITCH_STATUS_SUCCESS) {
switch_core_session_get_read_impl(other_session, &other_read_impl); switch_core_session_get_read_impl(other_session, &other_read_impl);
switch_core_session_rwunlock(other_session); switch_core_session_rwunlock(other_session);
if (read_impl.decoded_bytes_per_packet < other_read_impl.decoded_bytes_per_packet) { if (read_impl.actual_samples_per_second == other_read_impl.actual_samples_per_second) {
frame_size = other_read_impl.decoded_bytes_per_packet; if (read_impl.decoded_bytes_per_packet < other_read_impl.decoded_bytes_per_packet) {
frame_size = other_read_impl.decoded_bytes_per_packet;
}
} else {
if (read_impl.decoded_bytes_per_packet > other_read_impl.decoded_bytes_per_packet) {
frame_size = other_read_impl.decoded_bytes_per_packet;
}
} }
} }
bug->record_frame_size = frame_size; bug->record_frame_size = frame_size;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论