Repository navigation
libobs: Extract source audio-pause subscriptions unchanged - #4380
Merged
Merged
Conversation
zackees
enabled auto-merge
November 9, 2026 14:27
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.
Characterize
obs_source_add_audio_pause_callbackandobs_source_remove_audio_pause_callback, then move their bodies verbatim intolibobs/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.jsonandnative.rsare unchanged.The new two-case C suite proves that both
media_pauseandmedia_stoppedcall 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 ./lintpassed 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 lackslint rust --attest, so./pushused 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.