| 118 | } |
| 119 | |
| 120 | void 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 | |
| 138 | bool MacroConditionVideo::CheckCondition() |
| 139 | { |
nothing calls this directly
no test coverage detected