mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02: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:
parent
e27b013d47
commit
8fc0489e4a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user