mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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'.
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user