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 crossfade crash if track decoding failed #1332

Merged
merged 1 commit into from
Dec 3, 2023
Merged

Fix crossfade crash if track decoding failed #1332

merged 1 commit into from
Dec 3, 2023

Conversation

ggmolly
Copy link

@ggmolly ggmolly commented Dec 3, 2023

If libav is not installed on the system and the user tries to play an ALAC file (or any other file type that requires libav) and has the "Cross-fade when changing track automatically" enabled, Strawberry crashes while checking if both the current and next track are on the same album.

src/core/player.cpp Outdated Show resolved Hide resolved
@jonaski
Copy link
Member

jonaski commented Dec 3, 2023

Can you squash 0c70935 with the previous?

When the decoding of a track fails, `current_item_` is set to an invalid address, if the Crossfade option is enabled, the `Player::TrackAboutToEnd` method does not check whether `current_item_` is a valid pointer or not, causing a segmentation fault.

Player: Removed extra space
@jonaski jonaski merged commit 84c6e09 into strawberrymusicplayer:master Dec 3, 2023
32 checks passed
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.

2 participants