obs-filters: Maintain order of migrated NVAFX filters
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>
This commit is contained in:
parent
b4cd523d28
commit
69a825b71b
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue