Skip to content

libobs: Characterize and extract obs_set_output_source (Refs #4708) - #4726

Merged
zackees merged 2 commits into
masterfrom
test/4708-set-output-source-extract
Nov 11, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4708-set-output-source-extract

Conversation

@zackees

@zackees zackees commented Nov 11, 2026

Copy link
Copy Markdown
Member

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

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.

1 participant