Repository navigation
libobs: Fix monitoring hotkey UI updates - #13822
Conversation
4674947 to
ecb01ea
Compare
|
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. |
There was a problem hiding this comment.
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.
ecb01ea to
723ebd5
Compare
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. |
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.
stackwas being reused causingmonitorto 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
Checklist: