提交 8c56410d authored 作者: Seven Du's avatar Seven Du 提交者: Michael Jerris

FS-7512: slow down in block mod

上级 74cff6a7
...@@ -163,6 +163,9 @@ static switch_status_t png_file_read_video(switch_file_handle_t *handle, switch_ ...@@ -163,6 +163,9 @@ static switch_status_t png_file_read_video(switch_file_handle_t *handle, switch_
frame->img = dup; frame->img = dup;
context->sent++; context->sent++;
} else { } else {
if ((flags && SVR_BLOCK)) {
switch_yield(5000);
}
return SWITCH_STATUS_BREAK; return SWITCH_STATUS_BREAK;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论