提交 a5f982fd authored 作者: Travis Cross's avatar Travis Cross

mod_fifo: Replace duplicate code with node_caller_count()

上级 597a5c12
......@@ -674,15 +674,13 @@ static switch_status_t caller_read_frame_callback(switch_core_session_t *session
static switch_status_t consumer_read_frame_callback(switch_core_session_t *session, switch_frame_t *frame, void *user_data)
{
fifo_node_t *node, **node_list = (fifo_node_t **) user_data;
int x = 0, total = 0, i = 0;
int total = 0, i = 0;
for (i = 0;; i++) {
if (!(node = node_list[i])) {
break;
}
for (x = 0; x < MAX_PRI; x++) {
total += fifo_queue_size(node->fifo_list[x]);
}
total += node_caller_count(node);
}
if (total) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论