Repository navigation
libobs: Characterize and extract obs_set_output_source (Refs #4708) - #4726
Merged
Merged
Conversation
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.
The legacy obs_set_output_source wrapper has no dedicated C characterization and is embedded in obs.c.h, so it cannot be swapped independently. This prerequisite adds deterministic characterization through the real exported API, then moves the complete body verbatim to obs-set-output-source.c.h with an alphabetically sorted core unity include. There is no behavior or public API change and no Rust implementation in this PR.
Refs #4708. Rust swap follow-up: #4709, unclaimed and waiting for this prerequisite to land. Characterization commit e99432c precedes the separate extraction commit. This is the testing-policy characterization/extraction prerequisite; Rust RED/GREEN, Tier 1 and original-C differential Tier 3 belong to the follow-up. Tier 4 is inapplicable.
The three new C cases pin first/last channels and release-build invalid-channel rejection; repeated NULL clearing and same-source no-op; delegation to the actual main canvas with the same observable behavior as the direct canvas setter; old/new strong ownership and activation/show counts; one canvas signal before one global signal with the exact payload and old slot still installed; local/global payload replacement including NULL. Odd replacement ownership is characterized, not endorsed, and explicitly balanced in cleanup. All ownership assertions happen while sources remain alive with no render thread; teardown drains destruction rather than testing asynchronous lifetime timing.
Before and after extraction, the new suite plus unchanged test_object_ref and test_canvas_signals each passed five repeats against each actual hybrid/C-reference library: 30 suite executions per phase, zero skips. Dynamic symbols match, all 1,768 exports. The entire extracted definition is byte-identical, the parent only removes its span, and the characterization commit remains unchanged. Build-group checks, workspace formatting, diff checks and pinned self-review passed. Exactly one full SOLDR_PORCELAIN=0 ./lint ran with a 1,800-second deadline and passed (exit 0, lane lint: ok); matching Rust verdicts were reused.
The CMake fragment declares caption/Uthash and conditional Windows pthread dependencies. No existing C test, public header, WebSocket plugin, workflow, test-graph.json, native.rs or Rust test executable changed. No user-visible change requires a features-ledger line. Full Tier 2, native Windows/macOS, sanitizers, hosted CI completion and merge are not claimed as local validation.
🤖 Generated with Claude Code