summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index f842f22..8126581 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -916,11 +916,16 @@ static int calculate_step_count(const struct playlist_info *playlist, int steps)
int index;
int stepped_count = 0;
- count = steps;
if (steps < 0)
+ {
direction = -1;
+ count = -steps;
+ }
else
+ {
direction = 1;
+ count = steps;
+ }
index = playlist->index;
i = 0;