-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Fix a bug with Output Settings not updating & Toggle audio multi-tracks correctly #10294
Conversation
This removes the LoadOutputSettings() called in SaveStream1Settings. It caused a bug when trying to save Output settings when both Stream and Output settings have been changed but the changes have not been applied by hitting the 'Apply' button in Settings. Signed-off-by: pkv <pkv@obsproject.com>
5bd04d3
to
33aa419
Compare
Putting this to Draft. Will fix the CI issues later today |
33aa419
to
f594724
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also rename allowsMultiTrack
to AllowsMultiTrack
to match our function naming.
f594724
to
0dc09bd
Compare
thanks, done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions.
0dc09bd
to
414e0d3
Compare
This toggles audio multi track display in Output settings when: 1. When there is a signal that a stream service is changed to a non custom one. Indeed multi-track audio is only available with Custom service and only with SRT or RIST protocols. 2. When a Custom service is picked, and SRT or RIST are detected in the server URL. 3. When Stream settings are saved when one hits Apply. This is in addition to the toggling done when loading Stream Settings. Signed-off-by: pkv <pkv@obsproject.com>
414e0d3
to
63e7640
Compare
Description
This does two things:
Credits: Rodney made the correct guess for the faulty line.
(mpegts). The LoadOutputSettings call was used to do that update but it was too broad. Instead we use (a) the signal when a service is changed to switch back from mpegts multi-track to single track; (b) the signal when a URL is input in the Server text field of Custom service; (c) when Stream settings are saved.
Motivation and Context
Fixes a bug found in 30.1 beta.
The function was introduced by me in #9028 .
It was used to toggle the display of audio multi-tracks checkboxes instead of radio buttons.
The repro steps in beta are as follows:
The reason why this occurs is because when one hits apply, the stream settings are saved before the output settings.
But since they load the output settings, the changes for the outputs are reverted.
But we still want to display correctly audio multi track buttons (either radio or checkboxes). This is the goal of the second commit.
How Has This Been Tested?
The bug is fixed.
SRT multi-track audio still works (tested from obs to wowza).
Multi-track buttons alternate correctly between radio or checkboxes as a function of the Service or as a function of the protocol when Custom service is picked.
Types of changes
Checklist: