提交 4aa8f2d1 编写于 作者: J jp9000

libobs: Fix bug when changing filter order

The 'idx' variable is the incorrect variable to be using here, the
variable that was supposed to be used was 'i'.
上级 86a0f370
......@@ -1384,7 +1384,8 @@ void obs_source_filter_set_order(obs_source_t *source, obs_source_t *filter,
/* reorder filter targets, not the nicest way of dealing with things */
for (i = 0; i < source->filters.num; i++) {
obs_source_t *next_filter = (i == source->filters.num-1) ?
source : source->filters.array[idx+1];
source : source->filters.array[i + 1];
source->filters.array[i]->filter_target = next_filter;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册