Skip to content

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

Closed

Description

@rdoupe

Follow-up of #385 / #386, found in review of #386 (not an upstream report). The tooltip of the Video Capture Device (V4L2) option "Restore camera controls when the camera connects" promises something the option deliberately does not do.

Location

  • plugins/linux-v4l2/data/locale/en-US.ini line 17, RestoreCameraCtrls.ToolTip: "Sets the camera controls changed here again when OBS starts, when the camera is plugged in again and when the source's settings change."
  • plugins/linux-v4l2/v4l2-input.c lines 1398-1417, v4l2_update(): the saved controls are written on a settings update only when the option was already on (restore_was_on). The update that ticks the box writes nothing; the controls are set at the next open, replug, OBS start or other settings change.

Ticking the box is itself a settings change, so the tooltip reads as if ticking it sets the camera at once. It does not, by design: #386 says so in its description, and toggling_the_checkbox_writes_nothing in test/cmocka/test_v4l2_controls.c requires it. Writing on the tick would move a PTZ camera the moment the box is ticked, possibly to values the user never meant to restore.

Class

Wording only; no wrong behaviour, nothing lost. A user who ticks the box and closes the dialog sees no change until the camera reopens or another setting changes, while the tooltip suggests otherwise. The label itself ("...when the camera connects") is accurate.

Proposed fix

Reword the en-US tooltip to match the code: "...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 rest of the tooltip stays. No code change.

Tests: none new. test_v4l2_controls stubs obs_module_text() to return the key, so it checks that the checkbox has a tooltip, not its text; the key is unchanged. The behaviour the new wording describes is already covered by toggling_the_checkbox_writes_nothing.

Activity

  1. added
    bug
    on Oct 16, 2026
  2. rdoupe commented on Oct 16, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue.

    1. Reword the en-US RestoreCameraCtrls.ToolTip so it says ticking the box waits for the next open, replug or settings change (as linux-v4l2: Add an option to not restore camera controls on connect #386 designed). String only; toggling_the_checkbox_writes_nothing already covers the behaviour.
      PR follows now.
  3. added
    claimed
    on Oct 16, 2026
  4. added a commit that references this issue on Oct 16, 2026
    56e6dbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions