Skip to content

frontend: Fix crash on startup when using tbar apis in non-studio-mode#13128

Open
psyirius wants to merge 1 commit intoobsproject:masterfrom
obzessed:fix-frontend-tbar-api-crash-studio-mode
Open

frontend: Fix crash on startup when using tbar apis in non-studio-mode#13128
psyirius wants to merge 1 commit intoobsproject:masterfrom
obzessed:fix-frontend-tbar-api-crash-studio-mode

Conversation

@psyirius
Copy link
Contributor

Description

Fixes crash on accessing tbar apis such as obs_frontend_get_tbar_position, obs_frontend_set_tbar_position and obs_frontend_release_tbar when not in studio-mode on obs startup.

Motivation and Context

TBar apis should be a noop if studio-mode is active.
Instead it crashes obs if accessed in non-studio mode.

How Has This Been Tested?

Built OBS with this pr and accessed the tbar apis in non-studio mode from a plugin.
Everything working fine.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@WizardCM WizardCM added the Bug Fix Non-breaking change which fixes an issue label Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix Non-breaking change which fixes an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants