diff --git a/apps/playlist.c b/apps/playlist.c index 9a132e02f8..f842f22ec3 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -943,7 +943,7 @@ static int calculate_step_count(const struct playlist_info *playlist, int steps) i++; index += direction; - } while (i < count); + } while (i <= count); return steps; }