Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect implementation of TrackVirtual #6019

Merged
merged 5 commits into from
Oct 5, 2023

Conversation

peppy
Copy link
Member

@peppy peppy commented Oct 5, 2023

Noticed when going through osu! side test failures.

Also adds safeties and test coverage to DecouplingFramedClock against a source which may still start after a failed seek. Better safe than sorry I guess.

Note that the test doesn't fail even without the TrackVirtual fix, as it's not using a TrackVirtual.

peppy added 3 commits October 5, 2023 16:06
- When seeking to an invalid location, the track should stop. It wasn't
  being stopped.
- When attempting to start when alrerady at the end, the track shouldn't
  start. It was starting.
@bdach bdach self-requested a review October 5, 2023 08:17
@bdach
Copy link
Collaborator

bdach commented Oct 5, 2023

The TrackVirtual behaviour changes look sane. I've added test coverage of them in 6b4471c; please double-check that the tests look as you'd expect them to.

@bdach bdach merged commit 8bde7df into ppy:master Oct 5, 2023
@peppy peppy deleted the fix-seek-negative-to-beyond-length branch October 12, 2023 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants