提交 6705087d authored 作者: sgutierrez's avatar sgutierrez 提交者: Ken Rice

FS-7052 Moving jb queue swap operation out of the debug block.

Fixes a bug where the jitter buffer implementation wasn't discarding
old packets if debug mode was disabled.
上级 fdb269c2
......@@ -744,9 +744,10 @@ static int stfu_n_find_any_frame(stfu_instance_t *in, stfu_queue_t *queue, stfu_
if (was_read == queue->real_array_size) {
if (stfu_log != null_logger && in->debug) {
stfu_log(STFU_LOG_EMERG, "%s OUT QUEUE EMPTY, SWAPPING\n", in->name);
stfu_n_swap(in);
in->ready = 0;
}
stfu_n_swap(in);
in->ready = 0;
return 0;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论