Skip to content

build: .deb version is the OBS-Studio-Rust release version (#2299) - #2316

Merged
zackees merged 2 commits into
masterfrom
fix/2299-deb-version
Oct 25, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/2299-deb-version

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Fixes #2299

  • RED: ci/test_deb_version.py runs the new helper with cmake -P for two daily versions and 0.1.0, and checks 33.0.0-beta6-1902-g582a4c3ed < day1 < day2 < 0.1.0 with a Python port of dpkg's comparison (no dpkg needed on the runner).
  • GREEN: cmake/linux/deb-version.cmake (-→~, epoch 1), used by cpackconfig.cmake only when OBS_BRAND_RUST and OBS_RUST_RELEASE_VERSION are 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 -f check from the issue is not added here.

@zackees
zackees enabled auto-merge October 25, 2026 02:11
@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator

@zackees
zackees added this pull request to the merge queue Oct 25, 2026
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.
@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Coordinator: rebased onto master after #2314 landed. The cmake/linux/cpackconfig.cmake conflict is resolved by keeping both blocks: #2314's Recommends/Suggests, then this PR's deb-version include. Verified that the diff against master is only this PR's 4 files. Re-queued.

@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 25, 2026
@zackees
zackees force-pushed the fix/2299-deb-version branch from 00b692d to 687ce7b Compare October 25, 2026 02:35
@zackees
zackees enabled auto-merge October 25, 2026 02:35
@zackees
zackees added this pull request to the merge queue Oct 25, 2026
Merged via the queue into master with commit 5772927 Oct 25, 2026
30 checks passed
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
@zackees
zackees deleted the fix/2299-deb-version branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

1 participant