Skip to content

libobs: Fix monitoring hotkey UI updates - #13822

Merged
RytoEX merged 1 commit into
obsproject:masterfrom
prgmitchell:fixMonitoringIcon
Sep 1, 2026
Merged

RytoEX merged 1 commit into
obsproject:masterfrom
prgmitchell:fixMonitoringIcon

Conversation

@prgmitchell

@prgmitchell prgmitchell commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Description

Send the monitor signal before reusing its calldata buffer for the compatibility signal.

Motivation and Context

Saw a bug report and verified the same behavior myself on Windows. stack was being reused causing monitor to always be false.

This fixes #13821

How Has This Been Tested?

Tested enabling/disabling monitoring with hotkeys, the UI now updates live in both the audio mixer and advanced audio properties windows.

Types of changes

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

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.

Comment thread libobs/obs-source.c Resolved
@notr1ch notr1ch added the Seeking Testers Build artifacts on CI label Aug 25, 2026
@tiberium-v

Copy link
Copy Markdown

That PR fix it also for me on the linux flatpak side. I also tested it with the same hotkey for multiple source and the icon state update flawless over the board.

Since I opened the issue, I want to make a commit here, that it fix it.

@PatTheMav PatTheMav left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please amend the commit description properly explaining why this is the correct fix (per our contribution guidelines).

At a glance I could only figure that out guessing that stack is being overwritten with new initialised data by the second call to calldata_init_fixed, but this is precisely what the commit message should point out.

If that's indeed the case, the fix is correct otherwise.

Send the monitor signal first because initializing compat_data
overwrites the same buffer, causing the monitor value to always be
false.
@prgmitchell

Copy link
Copy Markdown
Member Author

Please amend the commit description properly explaining why this is the correct fix (per our contribution guidelines).

At a glance I could only figure that out guessing that stack is being overwritten with new initialised data by the second call to calldata_init_fixed, but this is precisely what the commit message should point out.

If that's indeed the case, the fix is correct otherwise.

All set, sorry about that I originally took a different approach before Warchamps review comment and didn't properly update the commit description when I made that change.

@RytoEX
RytoEX requested a review from PatTheMav August 26, 2026 18:08
@Warchamp7 Warchamp7 moved this from Ready For Review to Ready For Merge in Current Release Tracker (33.0) Aug 28, 2026
@Warchamp7 Warchamp7 added this to the OBS Studio 33.0 milestone Aug 28, 2026
@RytoEX
RytoEX merged commit 6785d7d into obsproject:master Sep 1, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from Ready For Merge to Merged in Current Release Tracker (33.0) Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Seeking Testers Build artifacts on CI

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

Monitor Icon in the Audio Mixer don't react for enable monitor

6 participants