obs-*: Cleanup

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-02-13 05:08:20 +01:00
parent cbb6c4f785
commit f8ee95d71c
2 changed files with 29 additions and 2 deletions

View file

@ -115,13 +115,20 @@ namespace obs {
}
void set_have_child_sources(bool v)
{
if (v) {
_info.enum_all_sources = _enum_all_sources;
} else {
_info.enum_all_sources = nullptr;
}
}
void set_have_active_child_sources(bool v)
{
if (v) {
_info.enum_active_sources = _enum_active_sources;
_info.enum_all_sources = _enum_all_sources;
} else {
_info.enum_active_sources = nullptr;
_info.enum_all_sources = nullptr;
}
}

View file

@ -40,6 +40,26 @@ namespace obs {
bool obs_properties_remove_by_name(obs_properties_t* props, const char* name);
} // namespace tools
static void obs_source_deleter(obs_source_t* v)
{
obs_source_release(v);
}
static void obs_scene_deleter(obs_scene_t* v)
{
obs_scene_release(v);
}
static void obs_sceneitem_releaser(obs_scene_item* v)
{
obs_sceneitem_release(v);
}
static void obs_sceneitem_remover(obs_scene_item* v)
{
obs_sceneitem_remove(v);
}
} // namespace obs
#endif