Sfoglia il codice sorgente

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.
Michael Fabian 'Xaymar' Dirks 5 anni fa
parent
commit
127dce6bf6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      libobs/obs-source.c

+ 1 - 1
libobs/obs-source.c

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