Skip to content

libobs: Extract source audio-pause subscriptions unchanged - #4380

Merged
zackees merged 3 commits into
masterfrom
test/4374-source-audio-pause-extract
Nov 9, 2026
Merged

zackees merged 3 commits into
masterfrom
test/4374-source-audio-pause-extract

Conversation

@zackees

@zackees zackees commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Characterize obs_source_add_audio_pause_callback and obs_source_remove_audio_pause_callback, then move their bodies verbatim into libobs/obs-source-audio-pause-callbacks.c.h. Register the new file in sorted position in the existing core-source unity group. Public headers, existing C tests, test-graph.json and native.rs are unchanged.

The new two-case C suite proves that both media_pause and media_stopped call the registered callback with its parameter, removing it clears both subscriptions while retaining another parameter's subscriptions, and NULL sources return without invoking callbacks. Signal-handler and calldata allocations are freed. Characterization commit: 0d2e3247b; behavior-neutral extraction: bf59dc02d.

Both cases passed against real hybrid libobs and libobs-c-reference before and after extraction (four case executions per stage, no skips), using the slot's existing Tier 2 compile/link commands. The extracted bodies are byte-identical to origin/master. Full SOLDR_PORCELAIN=0 ./lint passed in 111.4 seconds; Rust fmt/clippy reused soldr passing verdicts. Pre-push review was clean. No full Tier 2 suite or native Windows/macOS execution is claimed. Installed soldr lacks lint rust --attest, so ./push used its documented fallback without an attestation.

This prerequisite contains no Rust swap: RED → GREEN, Rust Tier 1 and differential Tier 3 belong to follow-up #4375. Tier 4 is inapplicable to these local subscription helpers.

Refs #4374. Rust follow-up: #4375.

@zackees
zackees merged commit ecd37f2 into master Nov 9, 2026
31 checks passed
@zackees
zackees deleted the test/4374-source-audio-pause-extract branch November 9, 2026 20:12
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