diff options
author | roman.artiukhin <bahusdrive@gmail.com> | 2022-12-08 16:52:54 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2022-12-30 19:56:44 -0500 |
commit | 178560f495b0b4c0cf3249c07ee81e94c001c312 (patch) | |
tree | 30167351674ee0edcef0655ca2809508ff74f6b3 /apps/gui/wps.c | |
parent | b321a719d314e30e7038fdd65792e46bcb3edba0 (diff) | |
download | rockbox-178560f495b0b4c0cf3249c07ee81e94c001c312.tar.gz rockbox-178560f495b0b4c0cf3249c07ee81e94c001c312.zip |
Treat cue file as folder for next/prev folder action
Do not get stuck if it's the only cue file in folder
Change-Id: Ibb1a406ff030f945e4234fbd1ece747d1e5a0c44
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r-- | apps/gui/wps.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 3cda2fb44a..cef232c6fc 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c | |||
@@ -857,7 +857,7 @@ long gui_wps_show(void) | |||
857 | case ACTION_WPS_SEEKFWD: | 857 | case ACTION_WPS_SEEKFWD: |
858 | if (current_tick -last_right < HZ) | 858 | if (current_tick -last_right < HZ) |
859 | { | 859 | { |
860 | if (state->id3->cuesheet) | 860 | if (state->id3->cuesheet && playlist_check(1)) |
861 | { | 861 | { |
862 | audio_next(); | 862 | audio_next(); |
863 | } | 863 | } |
@@ -875,10 +875,9 @@ long gui_wps_show(void) | |||
875 | case ACTION_WPS_SEEKBACK: | 875 | case ACTION_WPS_SEEKBACK: |
876 | if (current_tick - last_left < HZ) | 876 | if (current_tick - last_left < HZ) |
877 | { | 877 | { |
878 | if (state->id3->cuesheet) | 878 | if (state->id3->cuesheet && playlist_check(-1)) |
879 | { | 879 | { |
880 | audio_pre_ff_rewind(); | 880 | audio_prev(); |
881 | audio_ff_rewind(0); | ||
882 | } | 881 | } |
883 | else | 882 | else |
884 | { | 883 | { |