Skip to content

refactor(libobs): extract output weak-handle lifetime verbatim (Refs #4768) - #4824

Merged
zackees merged 2 commits into
masterfrom
test/4768-output-weak-lifetime
Nov 13, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4768-output-weak-lifetime

Conversation

@zackees

@zackees zackees commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Refs #4768

This C-only prerequisite characterizes and extracts the five output weak-handle lifetime functions into obs-output-weak-lifetime.c.h with a dedicated unity group. It pins NULL behavior, exact strong/weak counts, final weak freeing, live/expired promotion, identity after expiry, and output destruction while weak owners survive. obs_output_get_ref and shared atomics remain outside the extracted unit. The Rust swap remains follow-up #4778.

The producer passed the new C characterization and unchanged output-enumeration test against hybrid libobs and libobs-c-reference before and after extraction, with matching exports. GCC and strict Clang compilation, 277 native_build contracts, graph/build-group checks, formatting, and full lint passed on the original branch. All five moved definitions were compared byte-for-byte. This uses characterization before extraction; Rust RED/GREEN and differential coverage belong to the later swap. Public headers, existing C tests, the WebSocket plugin, and public behavior are preserved.

Rebased cleanly onto current master after the first four extraction prerequisites merged. The characterization and moved definitions are unchanged. Landing validation passed: soldr formatting, all 275 native_build tests plus two child probes, and full lint. Publication uses ./push and its pinned client proof attempt; the required hosted gate and selected merge-queue lanes decide admission.

The complete client proof attempt passed Linux x64 Clippy/Dylint and Linux arm64 Clippy. soldr then refused to build the unavailable nightly-2026-05-28 Dylint driver from source under clud, so no complete proof was attested. ./push published through its ordinary PR CI fallback; the existing toolchains and guard remain unchanged. Full local lint passed in 100.4 seconds.

@zackees
zackees marked this pull request as ready for review November 13, 2026 06:46
@zackees
zackees enabled auto-merge November 13, 2026 06:46
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
Merged via the queue into master with commit 6eb927a Nov 13, 2026
43 checks passed
@zackees
zackees deleted the test/4768-output-weak-lifetime branch November 13, 2026 08:36
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Nov 13, 2026
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