diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index cbd8eeb6a2..92a7ad979b 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -78,7 +78,7 @@ 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 | while ( playlist.index < 0 ) { |
82 | if ( global_settings.loop_playlist ) | 82 | if ( global_settings.loop_playlist ) |
83 | playlist.index += playlist.amount; | 83 | playlist.index += playlist.amount; |
84 | else | 84 | else |