Skip to content

obs-output: port public mixer getters (#3963) - #3966

Merged
zackees merged 4 commits into
masterfrom
port/3963-output-mixer-getters
Nov 8, 2026
Merged

zackees merged 4 commits into
masterfrom
port/3963-output-mixer-getters

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Ports the public output mixer index and mask getters into obs-output, preserving the complete mask, the lowest set bit below the mixer limit, NULL diagnostics and unchanged output state. Fixes #3963; Phase 6 parent #444. No intentional behavior differences or protocol changes.

C-only characterization 917bf23 passed against both actual libraries before the port. Extraction 5f512e1 moved both public C bodies verbatim in a separate building commit. RED b65712a failed both Tier 1 tests at the expected unimplemented getters. GREEN 61396a6 reuses the safe mixer-selection core and adds thin FFI through a discovered private field adapter. NULL is rejected before taking any C member address. The characterization test remains unchanged after its own commit.

All six focused tests pass, covering the real-header field-view size, alignment and every offset; full-width masks and flags; immutable real-layout fixtures; and exact isolated NULL diagnostics. Differential properties disable persistence and exclude no inputs. Forcing the mixer index to zero fails both deterministic and generated differential tests. The oracle uses the original C selection helper and receives production getter and logging callbacks rather than calling production functions directly.

The unchanged C characterization and nearby output capability and video-check tests pass against both hybrid libobs and the C reference in the warm Docker volume. Loader inspection confirms each library path, and both export the same 1,767 symbols. GCC and managed Clang pass the extracted getters, field adapter, C test and oracle under strict format warnings as errors. The focused ASan/UBSan C probe passes; the shared hybrid library itself was not rebuilt with sanitizers.

The full native-build module and complete obs-util suite pass, including 914 utility tests and two documentation tests. Oracle field discovery, per-port native registration, native b2 portability, graph sorting, build-group inventory and Rust inventory documentation checks pass. Existing logging linkage is covered by the full native-build module. Full serial lint passes. The final rebase preserves the newly landed object-query registration alongside this port; range-diff confirms no port logic changed. Focused tests and the native-build module are repeated on the rebased head.

Test cost: six focused cases over 25 reduced-parity runs, longest whole-module run 0.0141 seconds, peak child RSS 18,728 KiB. No test-owned threads; diagnostics use the existing isolated child helper. No new Rust executable, public header changes, existing master C test edits or WebSocket plugin changes. Tier 4 does not apply to these local queries.

@zackees
zackees force-pushed the port/3963-output-mixer-getters branch from 8baa932 to 61396a6 Compare November 8, 2026 02:50
@zackees
zackees marked this pull request as ready for review November 8, 2026 02:50
@zackees
zackees enabled auto-merge November 8, 2026 02:50
@zackees
zackees force-pushed the port/3963-output-mixer-getters branch from 61396a6 to ea96775 Compare November 8, 2026 03:18
@zackees

zackees commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Rebased onto master, preserving both output ports and RED-before-GREEN order. Range-diff shows conflict-context changes only; both getter families reject NULL before field-address access. All requested checks passed, including focused tests, all 189 native-build tests, 914 obs-util tests and both doc tests, formatting, serial lint with pinned clang-format, oracle discovery, registration, portability, graph sorting and README checks. The sibling codec tests also passed. Verified the lease-protected push at ea96775 and re-armed auto-merge for that head. Handed off to the coordinator without waiting for hosted CI.

@zackees
zackees disabled auto-merge November 8, 2026 03:31
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 8, 2026
@zackees
zackees force-pushed the port/3963-output-mixer-getters branch from ea96775 to 7739e00 Compare November 8, 2026 05:10
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
Merged via the queue into master with commit 8b36d61 Nov 8, 2026
40 checks passed
@zackees
zackees deleted the port/3963-output-mixer-getters branch November 8, 2026 05:38
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.

rust: Port obs-output mixer getters to obs-output

1 participant