Merge pull request #2739 from exeldro/removed_sources

libobs: Don't save removed sources
master
Richard Stanway 2020-04-18 16:58:48 +02:00 committed by GitHub
commit a81071f8cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2108,7 +2108,8 @@ obs_data_array_t *obs_save_sources_filtered(obs_save_source_filter_cb cb,
while (source) { while (source) {
if ((source->info.type != OBS_SOURCE_TYPE_FILTER) != 0 && if ((source->info.type != OBS_SOURCE_TYPE_FILTER) != 0 &&
!source->context.private && cb(data_, source)) { !source->context.private && !source->removed &&
cb(data_, source)) {
obs_data_t *source_data = obs_save_source(source); obs_data_t *source_data = obs_save_source(source);
obs_data_array_push_back(array, source_data); obs_data_array_push_back(array, source_data);