mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #925] [MERGED] Handle reset and decode errors with the Symphonia decoder. #1146
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/925
Author: @pdeljanov
Created: 1/5/2022
Status: ✅ Merged
Merged: 1/6/2022
Merged by: @roderickvd
Base:
new-api← Head:new-api-symphonia-fixes📝 Commits (1)
5d44f91Handle format reset and decode errors.📊 Changes
1 file changed (+33 additions, -32 deletions)
View changed files
📝
playback/src/decoder/symphonia_decoder.rs(+33 -32)📄 Description
This change fixes the handling of the
ResetRequirederror. By propagating theResetRequirederror up, the next Spotify track will be advanced to. This should be perfectly acceptable behaviour for librespot.This change also modifies the decode loop to skip corrupted packets when they're encountered. If the decode error is propagated up then the next track will be advanced to which seems undesirable.
I tested these changes with about 15 or so songs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.