Repository navigation
linux-v4l2: Say in the restore controls tooltip that ticking it waits - #977
Merged
Merged
Conversation
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
enabled auto-merge
October 16, 2026 03:04
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 #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.
v4l2_update()writes the saved controls only when the option was already on (plugins/linux-v4l2/v4l2-input.clines 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.plugins/linux-v4l2/data/locale/en-US.inichanges. There is no code change, and the label and other locales are untouched.RED → GREEN
test_v4l2_controlsstubsobs_module_text()to return the key, so it checks that the tooltip exists, not its text, and the key is unchanged.toggling_the_checkbox_writes_nothingcovers what the new wording describes, and it passes unchanged.ci/test_registration.pyis clean. No C or CMake file changed.Checklist
master-W..., ratchets): noneAI 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