Player: Always stop after 100 errors

Fixes #1199
This commit is contained in:
Jonas Kvinge 2023-08-01 16:59:43 +02:00
parent 2a90256d32
commit e273d64be3
1 changed files with 5 additions and 0 deletions

View File

@ -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;