Repository navigation
build: .deb version is the OBS-Studio-Rust release version (#2299) - #2316
Merged
Merged
Conversation
zackees
enabled auto-merge
October 25, 2026 02:11
Member
Author
|
Handed off to the coordinator |
With OBS_RUST_VERSION set, CPack's Debian version is 1:<version with ~>, so 0.1.0~beta.X < 0.1.0 and both sort above the old git-describe versions.
Member
Author
zackees
force-pushed
the
fix/2299-deb-version
branch
from
October 25, 2026 02:35
00b692d to
687ce7b
Compare
zackees
enabled auto-merge
October 25, 2026 02:35
vpacher
pushed a commit
to vpacher/obs-studio
that referenced
this pull request
Oct 25, 2026
* test: Default Desktop Audio follows the output An Audio Output Capture set to "Default" must record the monitor of the current default output. On PulseAudio it keeps recording the old one after the default output changes, which is silent once the applications' playback has moved on. When the default output is unplugged, the server moves the stream to the default source, so Desktop Audio records the microphone. Upstream reports: obsproject/obs-studio#4828, obs-rust#3211, obs-rust#2316. test_pulse_default_follow loads the real linux-pulseaudio module into libobs and runs it against a private sound server with null sinks, a pacat playback stream as the desktop (+0.25) and a pipe source as the microphone (-0.5), so each sample tells where it came from. pactl reports which source the capture's stream records from. Cases: switch the default output, unplug it and plug it back, plug in a new output and make it the default. A capture of a named output stays on it, a "Default" Audio Input Capture follows the default source (control), and saving unchanged "Default" settings keeps the stream. It runs twice: against a private PulseAudio daemon started by the new test_pulse_pulseaudio.sh (own runtime dir, HOME and D-Bus, only the native protocol module), which skips when no pulseaudio binary is installed, and against pipewire-pulse through test_pulse_monitor_device.sh. On master, PulseAudio: the switch and new-output cases record silence from the old monitor, the unplug case records the microphone, and saving the settings restarts the stream. pipewire-pulse: only the last fails. Refs obs-rust#2260 * linux-pulseaudio: Follow the default device An Audio Output Capture set to "Default" resolved the default sink once, when its stream started, and recorded that sink's monitor from then on. Its stream was allowed to move, and the shared context only listened for source events. On PulseAudio, a change of the default output left it on the old monitor, which goes silent once the applications' playback has moved. When the default output was unplugged, the server rescued the stream to the default source, the microphone, and moved it with every default source change after that. pipewire-pulse moved it to the new monitor, so it was not affected. Subscribe to server events as well. On a server change, a source set to "default" asks the server for its default device again (the default sink's monitor for output capture, the default source for input capture). If that is not the device it records from, it restarts the stream there through the existing UI-thread path, without the startup skip, as after a failed stream. Every stream, "default" included, is now connected with PA_STREAM_DONT_MOVE, so the server can no longer move Desktop Audio onto a microphone. A "default" stream whose device goes away fails and restarts on the new default. pulse_update() compared the saved "default" with the device it resolved to, so saving unchanged properties restarted the stream every time. Compare "default" with "default". test_pulse_reconnect covers the new PULSE_SERVER_CHANGED decision. Fixes obs-rust#2260
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.
Fixes #2299
ci/test_deb_version.pyruns the new helper withcmake -Pfor two daily versions and0.1.0, and checks33.0.0-beta6-1902-g582a4c3ed < day1 < day2 < 0.1.0with a Python port of dpkg's comparison (no dpkg needed on the runner).cmake/linux/deb-version.cmake(-→~, epoch 1), used bycpackconfig.cmakeonly whenOBS_BRAND_RUSTandOBS_RUST_RELEASE_VERSIONare set; local builds unchanged. Features ledger line added.Built: the test runs locally (RED 2 failures, GREEN OK). No .deb was built; the release job's
dpkg-deb -fcheck from the issue is not added here.