Repository navigation
libobs: characterize and extract obs_get_output_source (Refs #4755) - #4762
Merged
Merged
Conversation
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
enabled auto-merge
November 12, 2026 22:40
This was referenced Nov 12, 2026
This was referenced Nov 12, 2026
This was referenced Nov 13, 2026
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.
obs_get_output_sourceis still embedded inobs.c.h, so hybrid libobs cannot replace it independently. This C-only prerequisite characterizes the exported getter and moves its complete body verbatim intoobs-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
9f95459b9e4ca861c4bb783e9af950bc205271ecprecedes extraction commit85d4a2656b0028f5a25caa3e6793e817882909bc. 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 + 1andUINT32_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_sourceplus unchangedtest_set_output_source,test_object_refandtest_canvas_signalspassed 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 andgit diff --checkpassed.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 ./lintpassed (exit 0,lane lint: ok, 154.0 seconds)../pushattested/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.