libobs & frontend: fallback transitions when plugin is absent#13639
Draft
xurei wants to merge 2 commits into
Draft
libobs & frontend: fallback transitions when plugin is absent#13639xurei wants to merge 2 commits into
xurei wants to merge 2 commits into
Conversation
xurei
marked this pull request as draft
July 11, 2026 02:36
Add OBS_SOURCE_FALLBACK flag Add obs_source_create_private_with_fallback()
Based on OBS_SOURCE_FALLBACK to mark the invalid transitions in the UI Uses the "cut" transition as fallback
xurei
force-pushed
the
proposal/fallback-source
branch
from
July 11, 2026 02:47
86ed51e to
55d8cd7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a follow-up of PR #9964 which allowed to keep the disabled transition in Safe Mode.
This PR adds a new source flag
OBS_SOURCE_FALLBACKand a new functionobs_source_create_private_with_fallback()inlibobs.The
OBS_SOURCE_FALLBACKflag indicates that the original source type was invalid and replaced by another one.It allows the frontend to load, save and render an invalid transition using "cut" as fallback.
This approach made the changes very limited and less prone to bugs.
The invalid/fallback'ed transitions shows the

no_sourcesicon next to its name in the UI.(I tried to change the font color to red, but apparently it does not work everywhere, I guess because of how Qt handles theming)
The properties UI shows an empty configuration panel when shown:

Motivation and Context
With the new Plugin Manager, it is now easier for the user to "mess up" with their configuration and remove transitions by mistake.
Besides, it makes the experience more unified, as the invalid filters and sources are not deleted when the related plugin is not present.
Also, as a plugin developer, any change that breaks the in-dev plugin causes all its transitions to disappear, which is annoying.
How Has This Been Tested?
I fully tested the changes on Linux (Ubuntu 26.04) with different scenarii:
However, I don't think it's a big issue, since Filters and Sources can already be in a similar situation.
I do believe that a second pair of eyes would be useful on this.
I explored different solutions to make as few changes as possible and ensure no bug are introduced.
This was the simplest solution I found, although I'm not fond of the
obs_source_create_private_with_fallback(), to be fair. Maybe someone could use this as a base and find a better solution?Types of changes
Checklist: