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

Method UpdateActiveKeeper

plugins/video/macro-condition-video.cpp:120–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void MacroConditionVideo::UpdateActiveKeeper()
121{
122 _activeKeeper.SetActive(_keepActive);
123 if (_video.type == VideoInput::Type::OBS_MAIN_OUTPUT) {
124 return;
125 }
126 if (!_keepActive) {
127 _lastActiveKeeperSource = nullptr;
128 return;
129 }
130 auto videoSource = _video.GetVideo();
131 if (videoSource == _lastActiveKeeperSource) {
132 return;
133 }
134 _lastActiveKeeperSource = videoSource;
135 _activeKeeper.SetSource(OBSGetStrongRef(videoSource));
136}
137
138bool MacroConditionVideo::CheckCondition()
139{

Callers

nothing calls this directly

Calls 4

OBSGetStrongRefFunction · 0.85
SetActiveMethod · 0.80
GetVideoMethod · 0.80
SetSourceMethod · 0.45

Tested by

no test coverage detected