| 235 | } |
| 236 | |
| 237 | std::string VideoInput::ToString(bool resolve) const |
| 238 | { |
| 239 | switch (type) { |
| 240 | case VideoInput::Type::OBS_MAIN_OUTPUT: |
| 241 | return obs_module_text("AdvSceneSwitcher.OBSVideoOutput"); |
| 242 | case VideoInput::Type::SOURCE: |
| 243 | return source.ToString(resolve); |
| 244 | case VideoInput::Type::SCENE: |
| 245 | return scene.ToString(resolve); |
| 246 | } |
| 247 | return ""; |
| 248 | } |
| 249 | |
| 250 | bool VideoInput::ValidSelection() const |
| 251 | { |
no test coverage detected