Merge pull request #1708 from Xaymar/patch-filter-load

libobs: Tell filters that we want to load
This commit is contained in:
Colin Edwards 2019-03-03 22:08:17 -06:00 committed by GitHub
commit fd5de98486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}