Skip to content

Commit

Permalink
obs-filters: Maintain order of migrated NVAFX filters
Browse files Browse the repository at this point in the history
This fixes a bug where the NVIDIA NVAFX filters are migrated but not
kept in their original order, with respect to other filters.

Signed-off-by: pkv <pkv@obsproject.com>
  • Loading branch information
pkviet authored and RytoEX committed Dec 10, 2024
1 parent b4cd523 commit 69a825b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/obs-filters/noise-suppress-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,9 @@ static void noise_suppress_nvafx_migrate_task(void *param)
{
struct noise_suppress_data *ng = param;
obs_source_t *parent = obs_filter_get_parent(ng->context);
int index = obs_source_filter_get_index(parent, ng->context);
obs_source_filter_add(parent, ng->migrated_filter);
obs_source_filter_set_index(parent, ng->migrated_filter, index);
obs_source_set_enabled(ng->migrated_filter, obs_source_enabled(ng->context));
obs_source_filter_remove(parent, ng->context);
}
Expand Down

0 comments on commit 69a825b

Please sign in to comment.