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:
jp9000 2017-01-16 09:53:16 -08:00
parent 2877f1d553
commit 69ec87b9a5

View File

@ -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;