Skip to content

linux-pipewire: populate initial camera framerate list - #3053

Closed
zackees wants to merge 0 commit into
masterfrom
agent/obs12
Closed

zackees wants to merge 0 commit into
masterfrom
agent/obs12

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

Fixes #1068

Summary

  • choose the first enumerated camera format when a new source has no saved format
  • populate and enable its matching framerate list
  • cover the initial-properties path with the existing fake-camera cmocka test

Validation

  • RED: focused Tier 2 run is in progress; the added assertion exercises the existing early return when settings["format"] is absent.
  • GREEN: pending the same focused Tier 2 run after the fix.
  • ./lint: reached the CI test suite but failed an unrelated temporary-PATH failure in ci/test_check_changes.py (git: command not found).

Tiers: this is a Linux C plugin fix; Rust Tier 1 and differential Tier 3 do not apply. Tier 2 is the cmocka camera integration test; Tier 4 does not apply.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review. The fix is right in shape: falling back to the first listed format when nothing is saved, then populating its frame rates, matches what the user expects, and the device-without-formats path still returns early. Adding a case to test_pipewire_camera_format_dedup.c is fine (it is our own test, not an upstream one, and nothing existing is edited). The features line is present.

Before queuing, I need one thing:

  • RED → GREEN evidence. The body says both runs are "in progress" and "pending". Please push the RED commit (the new case failing on the unfixed camera-portal.c.h) and the GREEN commit separately, or paste both focused Tier 2 results, as coordination.md §4 asks.

Two smaller points:

  • format_selected() now writes settings["format"] from inside a modified callback. That is the usual libobs pattern, but please confirm the saved scene keeps the chosen format after a save and reload. If it doesn't, the source picks "first format" again on every load, and the user's choice is lost once the camera's enumeration order changes.
  • The test hard-codes "30.00" from the fake camera. That is fine, but name the fake's format in a comment so the next person knows why the value is 30.

I will queue it once the evidence is in and CI is green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: linux-pipewire: camera format labels and framerate list can disagree when the settings have no valid format yet (part 2 of #390)

1 participant