diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index bd443e4f38..bc2bd05905 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -85,6 +85,7 @@ | |||
85 | #include "misc.h" | 85 | #include "misc.h" |
86 | #include "button.h" | 86 | #include "button.h" |
87 | #include "filetree.h" | 87 | #include "filetree.h" |
88 | #include "abrepeat.h" | ||
88 | #ifdef HAVE_LCD_BITMAP | 89 | #ifdef HAVE_LCD_BITMAP |
89 | #include "icons.h" | 90 | #include "icons.h" |
90 | #include "widgets.h" | 91 | #include "widgets.h" |
@@ -867,6 +868,9 @@ static int get_next_index(const struct playlist_info* playlist, int steps, | |||
867 | } | 868 | } |
868 | 869 | ||
869 | case REPEAT_ONE: | 870 | case REPEAT_ONE: |
871 | #ifdef AB_REPEAT_ENABLE | ||
872 | case REPEAT_AB: | ||
873 | #endif | ||
870 | next_index = current_index; | 874 | next_index = current_index; |
871 | break; | 875 | break; |
872 | 876 | ||
@@ -1916,7 +1920,11 @@ int playlist_next(int steps) | |||
1916 | struct playlist_info* playlist = ¤t_playlist; | 1920 | struct playlist_info* playlist = ¤t_playlist; |
1917 | int index; | 1921 | int index; |
1918 | 1922 | ||
1919 | if (steps > 0 && global_settings.repeat_mode != REPEAT_ONE) | 1923 | if ( (steps > 0) |
1924 | #ifdef AB_REPEAT_ENABLE | ||
1925 | && (global_settings.repeat_mode != REPEAT_AB) | ||
1926 | #endif | ||
1927 | && (global_settings.repeat_mode != REPEAT_ONE) ) | ||
1920 | { | 1928 | { |
1921 | int i, j; | 1929 | int i, j; |
1922 | 1930 | ||