Repository navigation
fix: preserve async audio timing after video queue overflow - #3653
Conversation
|
Queue acceptance verified at 2026-11-05 06:03:53 UTC: position 2, QUEUED, pinned head Required CI Gate and fresh Pull run 41976425743 passed on that exact head. All six Tier 2 partitions passed; both parallel modes ran 718 tests with zero failures, including the new overflow-clock regression and unchanged audio integration test. ASan passed: the new regression and unchanged audio integration exited 0, the app exited cleanly, and 697/697 counted tests were clean. The existing external unloaded-driver allocations remain listed separately; no OBS failure was waived. Local evidence: full lint and review clean; official sanitizer harness passes all three new cases and all six unchanged audio cases with leak detection. Ten additional loaded, cold-shader, slow-unwinder runs had zero tone breaks. Existing C tests and public headers remain unchanged. |
A graphics stall can fill the 30-frame async video queue. The overflow path also reset the running source clock, so the next tick anchored delayed audio to the oldest leftover picture instead of catching up on the original timeline. First-texture shader compilation reproduced a 166.7 ms anchor jump and two tone breaks.
Preserve the clock on capacity overflow. Queue bounds and ownership, explicit stops, and genuine source timestamp-jump handling are unchanged. Remove the now-resolved audio sanitizer exemption and record the user-visible fix in the features ledger.
Fixes #3368.
Validation:
4d7a88c48: actual libobs cache overflow changeslast_frame_tsto zero; the new preservation assertion fails. The explicit-stop reset guard passes.662b14821: the three deterministic regression cases pass via the repository'ssanitize.run_one_test, including overflow before the first tick and explicit-stop guards; ASan/UBSan with leak detection, exit 0.sanitize.run_one_testwith its standard unwinder and leak detection, exit 0. Tones at 1/3/5-second video delay have zero breaks. Observed audio delays: 1093 ms / 3083 ms / 0 ms for 1-second / 3-second / no filter.clud-reviewreviewer found no blockers.Existing C tests and public headers are unchanged. This changes the shared C caller used by hybrid and reference libobs; Rust pacing helpers and Tier 3 parity logic are unchanged. Native coverage uses the routine gate: no platform implementation changed. Hosted PR CI remains the merge gate.