forked from len0rd/rockbox
Allow reverse playlist wrap in repeat mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1626 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b47e64ed6a
commit
523c51a944
1 changed files with 6 additions and 2 deletions
|
@ -78,8 +78,12 @@ char* playlist_next(int steps)
|
||||||
char *dir_end;
|
char *dir_end;
|
||||||
|
|
||||||
playlist.index = (playlist.index+steps) % playlist.amount;
|
playlist.index = (playlist.index+steps) % playlist.amount;
|
||||||
if ( playlist.index < 0 )
|
if ( playlist.index < 0 ) {
|
||||||
playlist.index = 0;
|
if ( global_settings.loop_playlist )
|
||||||
|
playlist.index += playlist.amount;
|
||||||
|
else
|
||||||
|
playlist.index = 0;
|
||||||
|
}
|
||||||
seek = playlist.indices[playlist.index];
|
seek = playlist.indices[playlist.index];
|
||||||
|
|
||||||
if(playlist.in_ram)
|
if(playlist.in_ram)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue