Fix a crash when reaching the end of a playlist
This commit is contained in:
parent
81b46f2eff
commit
06aaaf15f5
@ -535,6 +535,8 @@ void Player::TrackAboutToEnd() {
|
||||
// gap between songs.
|
||||
if (current_item_options_ & PlaylistItem::ContainsMultipleTracks)
|
||||
return;
|
||||
if (playlist_->next_index() == -1)
|
||||
return;
|
||||
|
||||
shared_ptr<PlaylistItem> item = playlist_->item_at(playlist_->next_index());
|
||||
if (!item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user