/
/
# What does this implement/fix? Seeking forward in a slow/realtime source (Spotify through the Soloist backend, and anything else that hands its audio over at playback pace) could take as long as the distance you seeked. Jumping 20 seconds ahead meant waiting 20 seconds for the audio to appear. That is because Music Assistant waits for the source to catch up whenever the seek lands within 20 seconds of what it has already produced. For a source that produces faster than playback that wait is short and worth it. A live source can only make that audio at playback speed, so the wait costs the full distance — while simply starting it again at the new position takes about a second. Music Assistant already does exactly that when it has to build a new buffer; it just did not apply it to a buffer it already had. Measured on a real speaker: seeks landing 18s and 20s ahead took that long, while a seek that happened to start a fresh buffer was playing again in ~1.5s. Changes: - a seek past what a live source has produced restarts it at that position instead of waiting **Related issue (if applicable):** - follow-up on #6050 and #6055 ## Types of changes - [x] Bugfix (non-breaking change which fixes an issue) — `bugfix` - [ ] New feature (non-breaking change which adds functionality) — `new-feature` - [ ] Enhancement to an existing feature — `enhancement` - [ ] New music/player/metadata/plugin provider — `new-provider` - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) — `breaking-change` - [ ] Refactor (no behaviour change) — `refactor` - [ ] Documentation only — `documentation` - [ ] Maintenance / chore — `maintenance` - [ ] CI / workflow change — `ci` - [ ] Dependencies bump — `dependencies` ## Checklist - [x] The code change is tested and works locally. - [x] `pre-commit run --all-files` passes. - [x] `pytest` passes, and tests have been added/updated under `tests/` where applicable. - [ ] For changes to shared models, the companion PR in `music-assistant/models` is linked. - [ ] For changes affecting the UI, the companion PR in `music-assistant/frontend` is linked. - [x] I have read and complied with the project's [AI Policy](https://github.com/music-assistant/.github/blob/main/AI_POLICY.md) for any AI-assisted contributions. - [ ] I have [raised a PR against the documentation repository](https://github.com/music-assistant/music-assistant.io/blob/main/CONTRIBUTING.md) targeting the main or beta branch as appropriate.