From 874820ec2f6b0af7dc269f0a7b79771435324018 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Fri, 17 Apr 2020 14:05:36 +0200 Subject: [PATCH] libobs: Don't save removed sources --- libobs/obs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libobs/obs.c b/libobs/obs.c index fd9218a06..717260fc0 100644 --- a/libobs/obs.c +++ b/libobs/obs.c @@ -2108,7 +2108,8 @@ obs_data_array_t *obs_save_sources_filtered(obs_save_source_filter_cb cb, while (source) { 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_array_push_back(array, source_data);