0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

libobs: Call enum_all_sources in check for enum_all_sources

Fixes a crash caused by checking for enum_all_sources and then calling
enum_active_sources instead of enum_all_sources. enum_active_sources is
not required for sources that specify enum_all_sources.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-07-27 01:53:58 +02:00
parent 3907b2ddd1
commit 127dce6bf6

View File

@ -3753,7 +3753,7 @@ static void enum_source_full_tree_callback(obs_source_t *parent,
child, enum_source_full_tree_callback, param); child, enum_source_full_tree_callback, param);
if (child->info.enum_all_sources) { if (child->info.enum_all_sources) {
if (child->context.data) { if (child->context.data) {
child->info.enum_active_sources( child->info.enum_all_sources(
child->context.data, child->context.data,
enum_source_full_tree_callback, data); enum_source_full_tree_callback, data);
} }