Repository navigation
obs-core: swap obs_get_main_canvas to Rust delegation (Refs #4780) - #4785
Merged
Merged
Conversation
zackees
marked this pull request as draft
November 12, 2026 23:56
zackees
changed the base branch from
master
to
test/4779-get-main-canvas-extract
November 12, 2026 23:56
zackees
force-pushed
the
port/4780-get-main-canvas
branch
from
November 13, 2026 01:47
481c01c to
04eec75
Compare
zackees
marked this pull request as ready for review
November 13, 2026 01:53
zackees
enabled auto-merge
November 13, 2026 01:53
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 13, 2026
zackees
enabled auto-merge
November 13, 2026 02:39
zackees
force-pushed
the
port/4780-get-main-canvas
branch
from
November 13, 2026 02:41
04eec75 to
65f7421
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 13, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 13, 2026
zackees
force-pushed
the
port/4780-get-main-canvas
branch
from
November 13, 2026 05:13
65f7421 to
ea98f03
Compare
zackees
enabled auto-merge
November 13, 2026 05:14
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_main_canvasdelegates through a safe Rust core and thin ABI shim to the existing canvas reference operation. A private C adapter borrows the current main-canvas field; the shim acquires its reference exactly once and returns the result unchanged. Refs #4780; prerequisite #4784 has merged.Replayed only RED
e273726e14f46a320ed62f238b4032f6c2e54cb1and GREEN65f7421dcf21efbbb3c6d64cc43216d126fd1db2onto masterbe2810c481857c3456e83401bd4dc97c5a5e0eeb, after sibling #4803 merged and caused the queue ejection. New RED:0dc63d00d; new GREEN:ea98f03a3287ce5dd22a12c793e4b6ec377b13a1. The sole conflict resolution preservesobs-enum-scenes.c.halongside the main-canvas field adapter, sorted. All Rust registrations and export fragments remain intact. Range-diff shows only this context change. The new unity group was staged and committed before build-group inventory. The exact replaced remote head is65f7421dcf21efbbb3c6d64cc43216d126fd1db2.The original RED's four safe characterization counterparts failed at the intended stub. GREEN adds an original-C oracle and real C-layout measurements, comparing callback counts, reference/weak-reference effects, returned identities and complete fixture bytes. The original mutation check skipped acquisition and killed both differential behavior tests while layout still passed. Test cost (original measurement): 25 reduced-parity module runs, longest 0.070 s, peak RSS 18,580 KiB, no own threads.
Fresh replay validation: all seven safe/layout/differential
get_main_canvastests passed in the existingobs-tests-corebinary withOBS_PARITY_CASES=reducedandSOLDR_RUSTC_WRAPPER=none. Whitespace validation passed.Fresh Tier 2 replay rebuilt actual hybrid
libobsandlibobs-c-reference. Unchangedtest_get_main_canvas,test_get_output_source,test_set_output_source,test_object_refandtest_canvas_signalseach passed five repeats against each library (50 suite executions). Loader assertions verified both intended library paths. Dynamic symbol sets match exactly (1,768 each). Warm CMake configure took 56.8 seconds.One full repository
SOLDR_PORCELAIN=0 ./lintpassed on the replayed tree: exit 0, final lane verdictok(155.4 seconds). The report parser returnedunknown, so the command status and final lane result were checked directly. Soldr reused matching passing verdicts for unchanged clippy inputs.The prerequisite C characterization and extracted body remain unchanged. Standalone Rust-static consumers link the real private adapter; the original implementation belongs to its reference-only unity group. No existing C test, public C header, WebSocket plugin, workflow, shared test graph, native test list or Rust executable changes. This behavior-preserving port needs no features-ledger line.
No intentional behavior differences. Uninitialized core, dead canvases and overflowing reference counts remain excluded C precondition violations. Tier 4 is inapplicable. The full Tier 2 suite, native Windows/macOS runtime, sanitizers and a fresh mutation run were not run locally; ordinary hosted PR and merge-queue CI remain the merge gates.
Published head:
ea98f03a3287ce5dd22a12c793e4b6ec377b13a1. Publication used the unchanged./pushentry point with an exact--force-with-lease=refs/heads/port/4780-get-main-canvas:65f7421dcf21efbbb3c6d64cc43216d126fd1db2. Installedprooftstill rejects master's newerdataandswiftgate ecosystems before running client proof, so the normal fallback published without complete signed client evidence. No toolchain, permissions, attestation policy or source workaround was made; ordinary hosted checks remain required.