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

FS-4023 --resolve makes sense thx

上级 061d6c9c
...@@ -2621,8 +2621,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da ...@@ -2621,8 +2621,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da
case SWITCH_ABC_TYPE_READ_REPLACE: case SWITCH_ABC_TYPE_READ_REPLACE:
case SWITCH_ABC_TYPE_WRITE_REPLACE: case SWITCH_ABC_TYPE_WRITE_REPLACE:
{ {
int skip = 0;
if (type == SWITCH_ABC_TYPE_READ_REPLACE) { if (type == SWITCH_ABC_TYPE_READ_REPLACE) {
frame = switch_core_media_bug_get_read_replace_frame(bug); frame = switch_core_media_bug_get_read_replace_frame(bug);
} else { } else {
...@@ -2630,6 +2629,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da ...@@ -2630,6 +2629,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da
} }
for (i = 0; i < cont->index; i++) { for (i = 0; i < cont->index; i++) {
int skip = 0;
if (cont->list[i].sleep) { if (cont->list[i].sleep) {
cont->list[i].sleep--; cont->list[i].sleep--;
...@@ -2651,7 +2651,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da ...@@ -2651,7 +2651,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da
skip = 1; skip = 1;
if (skip) if (skip)
return SWITCH_TRUE; continue;
if (teletone_multi_tone_detect(&cont->list[i].mt, frame->data, frame->samples)) { if (teletone_multi_tone_detect(&cont->list[i].mt, frame->data, frame->samples)) {
switch_event_t *event; switch_event_t *event;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论