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

Function GetVideoSourceNames

lib/utils/selection-helpers.cpp:91–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91QStringList GetVideoSourceNames()
92{
93 auto sourceEnum = [](void *param, obs_source_t *source) -> bool /* -- */
94 {
95 QStringList *list = reinterpret_cast<QStringList *>(param);
96 uint32_t flags = obs_source_get_output_flags(source);
97 std::string test = obs_source_get_name(source);
98 if ((flags & (OBS_SOURCE_VIDEO | OBS_SOURCE_ASYNC)) != 0) {
99 *list << obs_source_get_name(source);
100 }
101 return true;
102 };
103
104 QStringList list;
105 obs_enum_sources(sourceEnum, &list);
106 return list;
107}
108
109QStringList GetSceneNames()
110{

Callers 3

PopulateVideoSelectionFunction · 0.85
getVideoSourcesListFunction · 0.85
getVideoSourcesListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected