Skip to content

libobs: characterize and extract obs_get_output_source (Refs #4755) - #4762

Merged
zackees merged 2 commits into
masterfrom
test/4755-get-output-source-extract
Nov 12, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4755-get-output-source-extract

Conversation

@zackees

@zackees zackees commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

obs_get_output_source is still embedded in obs.c.h, so hybrid libobs cannot replace it independently. This C-only prerequisite characterizes the exported getter and moves its complete body verbatim into obs-get-output-source.c.h, with an alphabetically sorted include in the existing core unity group. There is no behavior or public API change.

Fixes #4755. Rust swap follow-up: #4756, unclaimed and waiting for this prerequisite to land, following the sibling setter's #4726 → #4732 pattern.

Characterization commit 9f95459b9e4ca861c4bb783e9af950bc205271ec precedes extraction commit 85d4a2656b0028f5a25caa3e6793e817882909bc. This prerequisite contains no Rust; Rust RED/GREEN, safe Tier 1 and original-C differential Tier 3 belong to #4756. Tier 4 is inapplicable.

The three C cases pin every valid channel's empty/populated/cleared result, first/last boundaries and channel isolation, exact agreement with the main-canvas getter, one acquired source reference per read, repeated acquired references held across clearing, balanced release, and no getter effects on canvas ownership, slots, activation/showing or channel-change signals. Release builds also cover MAX_CHANNELS, MAX_CHANNELS + 1 and UINT32_MAX; invalid channels retain the downstream debug assertion. The initialized-core precondition is unchanged. There is no video/audio reset, render-thread timing assumption or sleep; teardown drains source destruction.

Validation: before extraction, test_get_output_source plus unchanged test_set_output_source, test_object_ref and test_canvas_signals passed five repeats each against each actual hybrid/C-reference library (40 suite executions, zero failures). Verified loaded library paths and identical sets of 1,768 dynamic exports. The entire extracted definition matches the original byte-for-byte; the parent removes only that span. Build-group checks (10 tests), Windows cmocka diagnostic checks (4 tests), pinned clang-format/gersemi and git diff --check passed.

After extraction, the same four suites passed another five repeats against each actual library (40 more suite executions, zero failures), and all 1,768 dynamic exports still match. Exactly one full SOLDR_PORCELAIN=0 ./lint passed (exit 0, lane lint: ok, 154.0 seconds). ./push attested/stamped the unchanged tree and the remote head matches the local stamped commit.

No existing C test, public header, WebSocket plugin, workflow, shared test graph, native test list or Rust test executable changed. No user-visible behavior change requires a features-ledger line. Full Tier 2, native Windows/macOS execution, sanitizers and hosted CI completion are not claimed as local validation. Hosted PR CI remains the merge gate.

Ci-Attestation: {"at":1794523216,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["9f95459b9e4ca861c4bb783e9af950bc205271ec"],"secs":0,"stamp":"86dcfba67e6bdb084cc6ff4fdc61bebb","tree":"36e5644df0635e58a97762461a06ab73f5f9b667","v":1,"via":"run"}
Ci-Attestation: {"at":1794523216,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["9f95459b9e4ca861c4bb783e9af950bc205271ec"],"secs":0,"stamp":"bf101bc6affc740f9d6522e077fe5ca2","tree":"36e5644df0635e58a97762461a06ab73f5f9b667","v":1,"via":"run"}
Ci-Attestation: {"at":1794523216,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["9f95459b9e4ca861c4bb783e9af950bc205271ec"],"secs":0,"stamp":"5abcfbc76b9c1cfca76c4a4210f22313","tree":"36e5644df0635e58a97762461a06ab73f5f9b667","v":1,"via":"run"}
@zackees zackees changed the title libobs: extract obs_get_output_source verbatim (Refs #4755) libobs: characterize and extract obs_get_output_source (Refs #4755) Nov 12, 2026
@zackees
zackees enabled auto-merge November 12, 2026 22:40
@zackees
zackees added this pull request to the merge queue Nov 12, 2026
Merged via the queue into master with commit a2572f4 Nov 12, 2026
42 checks passed
@zackees
zackees deleted the test/4755-get-output-source-extract branch November 12, 2026 23:18
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.

test: Characterize and extract obs_get_output_source before Rust swap

1 participant