You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: libobs: hiding a group keeps children with show/hide transitions active (upstream #5551) #324
Upstream OBS bug, reported by keirakatana in obsproject/obs-studio#5551 (reproduced by RytoEX with a VLC source and a Media Source). Code unchanged in this fork.
Location
libobs/obs-scene.cgroup_item_transition(): hiding a group starts each visible child's hide transition (obs_sceneitem_do_transition(child, false)), which holds the child source and is added as an active child of the group's scene, while the child item itself stays visible.
scene_enum_sources() lists an item's hide transition only when the item is not visible, so when the group's scene is deactivated the running hide transition, and the child source inside it, are never deactivated.
obs_sceneitem_do_transition() stops a running transition with obs_transition_force_stop(), which only emits transition_stop: the transition leaves the scene's active children but keeps running, and is later deactivated a second time (its counts go to -1).
Class
Source stays active: hiding a group does not stop a child that has show/hide transitions, so a VLC or Media Source keeps playing (and is heard in monitoring) while hidden.
How it is reached
Put a media source in a group, give the source a Show and a Hide transition, then hide the group: the source keeps playing. Without the transitions, or when hiding the source itself, it stops.
Reproduced headlessly with a tone source in a group with 300 ms show/hide transitions: after hiding the group the source stays activate_refs=1 show_refs=1 (expected 0); hiding the group during the show transition drives that transition's counts to -1.
Proposed fix and failing test
Fix: the scene's active tree lists whichever item transition is running regardless of the item's visibility (matching when it is added and removed), and a running item transition is stopped with force_stop followed by obs_transition_clear(), so it really stops.
RED test (cmocka, test_group_hide_transition_audio): hiding a group with child transitions, hiding it during the show transition, and controls without transitions and for hiding the child itself. 2 of 4 fail today.
RED: test_group_hide_transition_audio (2 of 4 failing): a tone source in a group with show/hide transitions, activation counts and program audio checked after hiding the group.
GREEN: keep running item transitions in the scene's active tree and stop them fully.
PR today.
Cause: hiding a group starts the hide transition of each child, and while that transition runs it holds the child source. libobs only counted a child's hide transition as part of the scene when the child itself was hidden, so when the group was hidden the running transition, and the VLC or Media Source inside it, never got deactivated and kept playing. RytoEX's steps in your thread (a VLC or Media Source in a group, with show/hide transitions) pinned that down. Stopping a running transition also left its state behind, which could push activation counts negative. Now any running item transition is part of the scene's active tree and is stopped fully, so hiding the group deactivates the media. The test puts a tone source with show/hide transitions in a group on program: before, hiding the group left the source active; now it's deactivated, also when the group is hidden mid-transition.
Not covered: the test uses a minimal fade, not the real VLC source or the stinger transition, and the mixer/monitoring UI wasn't checked by hand.
Workaround on stock OBS: remove the show/hide transitions from media inside groups, or hide the source itself instead of the group.
obs-rust is an AI-assisted fork of OBS; on Arch it's obs-studio-rust-git in the AUR.
If you try it, a short reply here on whether the audio stops when you hide the group would really help.
Activity
rdoupe commentedon Oct 12, 2026
Claiming: this issue.
test_group_hide_transition_audio(2 of 4 failing): a tone source in a group with show/hide transitions, activation counts and program audio checked after hiding the group.PR today.
test: Hiding a group must stop a child with show/hide transitions
libobs: Keep scene item transitions in the scene's active tree
rdoupe commentedon Oct 12, 2026
@keirakatana you reported this in obsproject/obs-studio#5551, so a heads-up: it's fixed here in obs-rust by #325, merged today with a regression test.
Cause: hiding a group starts the hide transition of each child, and while that transition runs it holds the child source. libobs only counted a child's hide transition as part of the scene when the child itself was hidden, so when the group was hidden the running transition, and the VLC or Media Source inside it, never got deactivated and kept playing. RytoEX's steps in your thread (a VLC or Media Source in a group, with show/hide transitions) pinned that down. Stopping a running transition also left its state behind, which could push activation counts negative. Now any running item transition is part of the scene's active tree and is stopped fully, so hiding the group deactivates the media. The test puts a tone source with show/hide transitions in a group on program: before, hiding the group left the source active; now it's deactivated, also when the group is hidden mid-transition.
Not covered: the test uses a minimal fade, not the real VLC source or the stinger transition, and the mixer/monitoring UI wasn't checked by hand.
Workaround on stock OBS: remove the show/hide transitions from media inside groups, or hide the source itself instead of the group.
obs-rust is an AI-assisted fork of OBS; on Arch it's
obs-studio-rust-gitin the AUR.If you try it, a short reply here on whether the audio stops when you hide the group would really help.