Repository navigation
fix: read the position after a fast seek once a frame has gone out - #581
Merged
Merged
Conversation
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.
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.
MediaPlayerTest.positionFollowsAFastSeekToItsKeyframeandfastSeekPlaysFromTheKeyframeBeforeread the position at the first video frame afterfastSeek(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.
fastSeekPlaysFromTheKeyframeBeforekeeps its frame and chunk counts, which already show that playback starts at the keyframe. The player is unchanged.