Repository navigation
fix(obs-filters): keep async video delay stable across skipped ticks - #3515
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.
When graphics ticks skip input frames, Video Delay (Async) continues replaying exactly one queued frame per tick. It can return an expired picture and increase its delay, or consume a picture before its configured delay has elapsed when earlier input timestamps contain a gap.
This change selects the newest eligible queued picture, releases older eligible pictures, and retains a picture until its delay has elapsed. Zero delay, rewinds, and forward timestamp jumps preserve their existing behavior.
Refs #3368. This is a scoped partial fix discovered during that investigation. The original loaded audio dropout still reproduces with this change, so the issue stays open and its sanitizer exemption stays in place. No C/Rust audio timing helpers or public headers change. Native coverage uses the routine gate: shared plugin logic, no platform implementation changes.
Validation:
a8e17f676: both deterministic queue cases fail with the old filter (frame 200 ms rather than 400 ms after skipped ticks; a frame returned before its delay elapses across a historical gap).d197cb1a7: all four deterministic queue cases pass under ASAN/UBSAN with leak detection, including zero delay and backward/forward timestamp resets.run_one_testpasses the unchanged six-case audio integration test (exit 0) and the queue regression (exit 0). Tones have zero breaks at 1/3/5-second configured delay; measured click delays are 1077 ms / 3087 ms / 0 ms for 1-second / 3-second / no filter.git diff --checkpass. A read-only clud-review found no blocking issues; its zero-delay/reset guard suggestion is included.CMAKE_COMPILE_WARNING_AS_ERROR=OFFbecause existing legacy conversion warnings fail that configuration; no repository compiler flags change. Hosted PR CI remains the required gate; Linux Tier 2 covers both hybrid and explicit C reference. The original reproduction also deliberately used the slow unwinder; final official harness uses its current per-test unwinder policy.The features ledger records the queue behavior only. Tier 3 C/Rust parity is unchanged because this PR modifies the preserved C plugin rather than a Rust port.