summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 63bd902ae2..f4626356cb 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -78,6 +78,8 @@ char* playlist_next(int steps)
78 char *dir_end; 78 char *dir_end;
79 79
80 playlist.index = (playlist.index+steps) % playlist.amount; 80 playlist.index = (playlist.index+steps) % playlist.amount;
81 if ( playlist.index < 0 )
82 playlist.index = 0;
81 seek = playlist.indices[playlist.index]; 83 seek = playlist.indices[playlist.index];
82 84
83 if(playlist.in_ram) 85 if(playlist.in_ram)