If the currently playing song was removed from the playlist, start from the beginning when playing the next track. Fixes issue #160
This commit is contained in:
parent
1eb9447097
commit
8b678cba9a
@ -113,8 +113,7 @@ void Player::NextItem() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Player::TrackEnded() {
|
void Player::TrackEnded() {
|
||||||
int i = playlist_->current_index();
|
if (playlist_->stop_after_current()) {
|
||||||
if (i == -1 || playlist_->stop_after_current()) {
|
|
||||||
Stop();
|
Stop();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user