diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-08-08 21:12:09 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-08 21:12:09 +0000 |
commit | 523c51a94436fb2947930daa7b583d35ddfc1750 (patch) | |
tree | 23358ee7fc714c24748d480839ec0519c1c351d1 | |
parent | b47e64ed6a22dff207facd6192159a910bdba387 (diff) | |
download | rockbox-523c51a94436fb2947930daa7b583d35ddfc1750.tar.gz rockbox-523c51a94436fb2947930daa7b583d35ddfc1750.zip |
Allow reverse playlist wrap in repeat mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1626 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/playlist.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index f4626356cb..cbd8eeb6a2 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -78,8 +78,12 @@ 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 ) | 81 | if ( playlist.index < 0 ) { |
82 | playlist.index = 0; | 82 | if ( global_settings.loop_playlist ) |
83 | playlist.index += playlist.amount; | ||
84 | else | ||
85 | playlist.index = 0; | ||
86 | } | ||
83 | seek = playlist.indices[playlist.index]; | 87 | seek = playlist.indices[playlist.index]; |
84 | 88 | ||
85 | if(playlist.in_ram) | 89 | if(playlist.in_ram) |