Repository navigation
test: Allow for decode-ahead in the playing-seek media time bound - #1775
Merged
Merged
Conversation
obs-rust#1766 bounded the media time read after a playing seek by the target plus the real time that passed plus two frames. A playing source decodes ahead, so the time it reports can run ahead of the frame it shows, and on a fast runner that exceeds two frames: macOS Tier 2 saw 4666 ms for a 4500 ms seek 97 ms after it (limit 4663 ms), with the right first frame. Locally it runs 66 ms ahead after 40 ms. Keep both allowances: the elapsed time for a slow runner, plus the 500 ms the test allowed before obs-rust#1766 for running ahead. The first-frame check and the lower bound are unchanged. Fixes obs-rust#1774
This was referenced Oct 22, 2026
Collaborator
Author
This was referenced Oct 22, 2026
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.
Fixes #1774
What and why
#1766 bounded
playing_seek_between_keyframes' media time by "target + elapsed wall time + two frames". That's too tight on a fast runner: a playing source decodes ahead, so its reported time runs ahead of the frame it shows. macOS Tier 2 on #1773 (job 119759618532) sawfirst frame 135, media time 4666 ms, 97 ms after the seek; the limit was 4663 ms. Our regression from #1766.The bound now keeps both allowances: elapsed time (a slow runner, the #1765 case) plus the 500 ms the test allowed before #1766 for running ahead (
PLAYING_AHEAD_MS). The first-frame check and the lower bound are unchanged.RED → GREEN
test_media_seek_keyframepasses 20/20 on C libobs locally. The slow-runner case from test: playing_seek_between_keyframes fails on slow runners (fixed 500 ms bound) #1765 still passes, since the bound only grew.uv run ci/local_gate.py --lane lintis ok.Checklist
masterdocs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): none