From c633413f0600436adba4f4c505a914e419db77f0 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 1 Mar 2019 20:36:02 +0100 Subject: [PATCH] libobs: Tell filters that we want to load Previously only sources would receive a load signal, but sources and filters would receive a save signal. This meant that filters that had a save signal to store something on disk would never receive a load signal to load it from disk. With this both sources and filters will now receive save and load signals, allowing both to work the same way. --- libobs/obs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libobs/obs.c b/libobs/obs.c index 7a8ff28a4..fef462daf 100644 --- a/libobs/obs.c +++ b/libobs/obs.c @@ -1823,6 +1823,12 @@ void obs_load_sources(obs_data_array_t *array, obs_load_source_cb cb, if (source->info.type == OBS_SOURCE_TYPE_TRANSITION) obs_transition_load(source, source_data); obs_source_load(source); + if (source->filters.num) { + for (size_t i = source->filters.num; i > 0; i--) { + obs_source_t *filter = source->filters.array[i - 1]; + obs_source_load(filter); + } + } if (cb) cb(private_data, source); }