libobs: Enumerate full tree when adding active child
Fixes a bug that would allow possible infinite recursion within a source tree. To fix this, inactive sources must be enumerated as well in order to prevent infinite recursion.
This commit is contained in:
parent
2877f1d553
commit
69ec87b9a5
@ -3119,7 +3119,7 @@ bool obs_source_add_active_child(obs_source_t *parent, obs_source_t *child)
|
||||
return false;
|
||||
}
|
||||
|
||||
obs_source_enum_active_tree(child, check_descendant, &info);
|
||||
obs_source_enum_full_tree(child, check_descendant, &info);
|
||||
if (info.exists)
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user