mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-13 07:15:06 +00:00
obs-*: Cleanup
This commit is contained in:
parent
cbb6c4f785
commit
f8ee95d71c
2 changed files with 29 additions and 2 deletions
|
@ -115,13 +115,20 @@ namespace obs {
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_have_child_sources(bool v)
|
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) {
|
if (v) {
|
||||||
_info.enum_active_sources = _enum_active_sources;
|
_info.enum_active_sources = _enum_active_sources;
|
||||||
_info.enum_all_sources = _enum_all_sources;
|
|
||||||
} else {
|
} else {
|
||||||
_info.enum_active_sources = nullptr;
|
_info.enum_active_sources = nullptr;
|
||||||
_info.enum_all_sources = nullptr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,26 @@ namespace obs {
|
||||||
|
|
||||||
bool obs_properties_remove_by_name(obs_properties_t* props, const char* name);
|
bool obs_properties_remove_by_name(obs_properties_t* props, const char* name);
|
||||||
} // namespace tools
|
} // 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
|
} // namespace obs
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue