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.zip rockbox-523c51a94436fb2947930daa7b583d35ddfc1750.tar.gz rockbox-523c51a94436fb2947930daa7b583d35ddfc1750.tar.bz2 rockbox-523c51a94436fb2947930daa7b583d35ddfc1750.tar.xz | |
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 f462635..cbd8eeb 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -78,8 +78,12 @@ char* playlist_next(int steps) char *dir_end; playlist.index = (playlist.index+steps) % playlist.amount; - if ( playlist.index < 0 ) - playlist.index = 0; + if ( playlist.index < 0 ) { + if ( global_settings.loop_playlist ) + playlist.index += playlist.amount; + else + playlist.index = 0; + } seek = playlist.indices[playlist.index]; if(playlist.in_ram) |