Skip to content

fix: read the position after a fast seek once a frame has gone out - #581

Merged
devopvoid merged 1 commit into
mainfrom
fix/fast-seek-position-test
Nov 10, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/fast-seek-position-test

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

MediaPlayerTest.positionFollowsAFastSeekToItsKeyframe and fastSeekPlaysFromTheKeyframeBefore read the position at the first video frame after fastSeek(1.5 s). At that moment it is still the position asked for (1.5 s) if video went out first, or that of the audio that went out before it, so both tests failed on slow runners depending on which came first.

The position is now read at the second frame, once the first has gone out, where it must follow the keyframe at 1 s rather than stay at 1.5 s. fastSeekPlaysFromTheKeyframeBefore keeps its frame and chunk counts, which already show that playback starts at the keyframe. The player is unchanged.

At the first frame the position is still the one asked for, or that of
audio that went out before it, so the check depended on which came first.
@devopvoid
devopvoid merged commit a05d445 into main Nov 10, 2026
36 of 39 checks passed
@devopvoid
devopvoid deleted the fix/fast-seek-position-test branch November 10, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant