mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 07:45:06 +00:00
obs-tools: Fix obs::tools::child_source not checking return value
This commit is contained in:
parent
fb5041a69d
commit
42c9375333
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,9 @@ bool obs::tools::obs_properties_remove_by_name(obs_properties_t* props, const ch
|
||||||
obs::tools::child_source::child_source(obs_source_t* parent, std::shared_ptr<obs_source_t> child)
|
obs::tools::child_source::child_source(obs_source_t* parent, std::shared_ptr<obs_source_t> child)
|
||||||
: _parent(parent), _child(child)
|
: _parent(parent), _child(child)
|
||||||
{
|
{
|
||||||
obs_source_add_active_child(_parent, _child.get());
|
if (!obs_source_add_active_child(_parent, _child.get())) {
|
||||||
|
throw std::runtime_error("recursion detected");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
obs::tools::child_source::~child_source()
|
obs::tools::child_source::~child_source()
|
||||||
|
|
Loading…
Reference in a new issue