From 4aa8f2d14b883c5e3a8eadfe280ff9b306d04586 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 14 Mar 2015 06:52:54 -0700 Subject: [PATCH] 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'. --- libobs/obs-source.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index b32d32fd8..9899d3605 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -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; } }