提交 69ec87b9 编写于 作者: J jp9000

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.
上级 2877f1d5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册