Skip to content

linux-v4l2: Say in the restore controls tooltip that ticking it waits - #977

Merged
zackees merged 1 commit into
obs-rust:masterfrom
rdoupe:fix/976-v4l2-restore-tooltip
Oct 16, 2026
Merged

zackees merged 1 commit into
obs-rust:masterfrom
rdoupe:fix/976-v4l2-restore-tooltip

Conversation

@rdoupe

@rdoupe rdoupe commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Fixes #976

What and why

The tooltip for the Video Capture Device (V4L2) option "Restore camera controls when the camera connects" now matches what the option does: ticking the box does not change the camera by itself.

  • Old text: the saved controls are set again "when the source's settings change". Ticking the box is such a change, but by design (linux-v4l2: Add an option to not restore camera controls on connect #386) that update writes nothing. v4l2_update() writes the saved controls only when the option was already on (plugins/linux-v4l2/v4l2-input.c lines 1398-1417). They are set at the next open, replug, OBS start or other settings change, so a PTZ camera doesn't move the moment the box is ticked.
  • New en-US text: "Sets the camera controls changed here again when OBS starts, when the camera is plugged in again and when another setting of this source changes. Ticking this box does not change the camera by itself: the controls are set the next time one of these happens." The sentence about external PTZ controllers stays.
  • Why reword instead of writing on the tick: writing at once would move a PTZ camera on a click. The text now matches the safer behaviour linux-v4l2: Add an option to not restore camera controls on connect #386 chose.
  • Scope: only plugins/linux-v4l2/data/locale/en-US.ini changes. There is no code change, and the label and other locales are untouched.

RED → GREEN

  • No RED commit: this is a string-only change. test_v4l2_controls stubs obs_module_text() to return the key, so it checks that the tooltip exists, not its text, and the key is unchanged.
  • Behaviour already tested: toggling_the_checkbox_writes_nothing covers what the new wording describes, and it passes unchanged.
  • Release check: the old tooltip is still in v0.1.0-beta.20261014 and on master.
  • Lint: ci/test_registration.py is clean. No C or CMake file changed.

Checklist

  • Base is master
  • I claimed the issue, or no one else has an open PR for it
  • Characterization test (if the unit had none), then RED, then GREEN commits: n/a, string only
  • (Optional) Local gate passed and the pushed head is stamped; otherwise PR CI runs the full suite
  • Warning or flag changes (-W..., ratchets): none
  • Intentional differences from C listed in the parity test header and rust/README.md (ports): not a port

AI note: Claude Code (Claude Opus 5.5) wrote the change, the commit message and this text under the submitter's direction.

🤖 Generated with Claude Code

The tooltip of "Restore camera controls when the camera connects" said
the saved controls are set again "when the source's settings change".
Ticking the checkbox is such a change, but by design (obs-rust#386) it writes
nothing: the controls are set at the next open, replug or other settings
change, so a PTZ camera does not move the moment the box is ticked.

Reword the en-US tooltip to match. No behaviour change; the existing
toggling_the_checkbox_writes_nothing case in test_v4l2_controls already
covers the behaviour the new wording describes.

Fixes obs-rust#976.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 16, 2026
@zackees
zackees enabled auto-merge October 16, 2026 03:04
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 16, 2026
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 16, 2026
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
Merged via the queue into obs-rust:master with commit 56e6dbd Oct 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: linux-v4l2: the "Restore camera controls" tooltip says ticking it applies the controls, but it waits (follow-up of #386)

2 participants