diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index f842f22ec3..81265813c4 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) | |||
916 | int index; | 916 | int index; |
917 | int stepped_count = 0; | 917 | int stepped_count = 0; |
918 | 918 | ||
919 | count = steps; | ||
920 | if (steps < 0) | 919 | if (steps < 0) |
920 | { | ||
921 | direction = -1; | 921 | direction = -1; |
922 | count = -steps; | ||
923 | } | ||
922 | else | 924 | else |
925 | { | ||
923 | direction = 1; | 926 | direction = 1; |
927 | count = steps; | ||
928 | } | ||
924 | 929 | ||
925 | index = playlist->index; | 930 | index = playlist->index; |
926 | i = 0; | 931 | i = 0; |