mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-05 22:04:46 -04:00
libobs: Fix scene_enum_sources skipping some active sources
If an item's show/hide transition was active the underlying source would not previously not be enumerated, resulting in reference leaks by the UI or other components waiting for the source to be deactivated to release it.
This commit is contained in:
@@ -270,7 +270,7 @@ static void scene_enum_sources(void *data, obs_source_enum_proc_t enum_callback,
|
||||
transition_active(item->hide_transition))
|
||||
enum_callback(scene->source,
|
||||
item->hide_transition, param);
|
||||
else if (os_atomic_load_long(&item->active_refs) > 0)
|
||||
if (os_atomic_load_long(&item->active_refs) > 0)
|
||||
enum_callback(scene->source, item->source,
|
||||
param);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user