mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-05 07:06:13 -05:00
UI: Remove obs_source_add and sourceSceneRefs variable
Prunes code used to workaround libobs "user sources" (such as sourceSceneRefs) and instead simply holds its own references and saves sources it chooses with obs_save_sources_filtered.
This commit is contained in:
@@ -1543,14 +1543,6 @@ void OBSBasicSettings::LoadAudioSources()
|
||||
return true;
|
||||
};
|
||||
|
||||
for (int i = 0; i < MAX_CHANNELS; i++) {
|
||||
obs_source_t *source = obs_get_output_source(i);
|
||||
if (!source) continue;
|
||||
|
||||
AddSource(source);
|
||||
obs_source_release(source);
|
||||
}
|
||||
|
||||
using AddSource_t = decltype(AddSource);
|
||||
obs_enum_sources([](void *data, obs_source_t *source)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user