Skip to content

libobs: Remove item transitions in toggled groups - #14210

Open
eliasthompson wants to merge 1 commit into
obsproject:masterfrom
eliasthompson:group-child-transitions
Open

eliasthompson wants to merge 1 commit into
obsproject:masterfrom
eliasthompson:group-child-transitions

Conversation

@eliasthompson

Copy link
Copy Markdown
Contributor

Description

The obs_sceneitem_set_visible function no longer triggers each child's show/hide transition of a group when that group's visibility is toggled, both to align with derrod's desired behavior as documented in #11446 of a visibility toggle should only relate to the item's transitions itself, and not any children's, and to fix the issue as documented at #5551 of ghost sources in the mixer. As a result, group_item_transition was no longer used and is removed. Only the group transitions themselves trigger now. Child transitions still fire fine when directly toggled. This PR fixes #5551.

Motivation and Context

Issue #5551 was starting to cause issues with my setup and so I dug into both how it could be fixed and what was desired in how it should be fixed. Basically when a group is hidden, the child transition currently starts and is counted as active. Because OBS only draws a finishing transition when the child itself is hidden, the transition never ends, and the child source remains in the mixer, causing plugins, obs-websocket, etc. to see it as active when it shouldn't. Relates to #11446 and implements derrod's desired behavior.

How Has This Been Tested?

Tested on Windows 11 (only) off of master ab5c0b911, using VS Build Tools 2026 and the windows-x64 preset, run in portable mode. I setup a looping media source with a fade show/hide transition and a text source with a swipe show transition. I hid the group after showing it:

mixer-after-hiding-group

Before this commit, the media source would stay in the mixer and in obs-websocket's GetSourceActive. After it didn't.

I then showed the group:

canvas-after-showing-group

Before, the text swiped in. After, it does not. Tested as many edge cases as I could think of including quick/interrupted toggles, transitions on the group itself, and various regression checks, all clear.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.

  • My code has been run through clang-format.

  • My code follows the project's style guidelines

  • My code is not on the master branch.

  • My code has been tested.

  • All commit messages are properly formatted and commits squashed where appropriate.

  • I have included updates to all appropriate documentation.

  • I have used AI tooling in the creation of this PR

Note: AI was used to help me research the issue root cause and history, point me to what code changes I should make, test the fix while taking screenshots, and help me understand proper submission process. I did all changes, commits, and submissions myself.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VLC Video source - audio keeps playing when source is in a group and group is hidden

1 participant