MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / SetActive

Method SetActive

lib/utils/source-helpers.cpp:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void SourceActiveKeeper::SetActive(bool active)
171{
172 if (_active == active) {
173 return;
174 }
175 if (active) {
176 _active = true;
177 AcquireRef();
178 } else {
179 ReleaseRef();
180 _active = false;
181 }
182}
183
184void SourceActiveKeeper::SetSource(obs_source_t *source)
185{

Callers 3

CheckConditionMethod · 0.80
SetupSignalHandlerMethod · 0.80
UpdateActiveKeeperMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected