diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 5d7ef2fd6c..bd5c2b2053 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -35,15 +35,15 @@ bool playlist_shuffle = false; | |||
35 | 35 | ||
36 | char now_playing[256]; | 36 | char now_playing[256]; |
37 | 37 | ||
38 | char* playlist_next(int type) | 38 | char* playlist_next(int steps) |
39 | { | 39 | { |
40 | int seek = playlist.indices[playlist.index]; | 40 | int seek; |
41 | int max; | 41 | int max; |
42 | int fd; | 42 | int fd; |
43 | int i; | 43 | int i; |
44 | (void)type; /* prevent compiler warning until this is gets used */ | ||
45 | 44 | ||
46 | playlist.index = (playlist.index+1) % playlist.amount; | 45 | playlist.index = (playlist.index+steps) % playlist.amount; |
46 | seek = playlist.indices[playlist.index]; | ||
47 | 47 | ||
48 | fd = open(playlist.filename, O_RDONLY); | 48 | fd = open(playlist.filename, O_RDONLY); |
49 | if(-1 != fd) { | 49 | if(-1 != fd) { |