Skip to content

Commit

Permalink
Player: Always stop after 100 errors
Browse files Browse the repository at this point in the history
Fixes #1199
  • Loading branch information
jonaski committed Aug 1, 2023
1 parent 2a90256 commit e273d64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ void Player::NextItem(const EngineBase::TrackChangeFlags change, const Playlist:
}
}

if (nb_errors_received_ >= 100) {
Stop();
return;
}

// Manual track changes override "Repeat track"
const bool ignore_repeat_track = change & EngineBase::TrackChangeType::Manual;

Expand Down

0 comments on commit e273d64

Please sign in to comment.