summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroman.artiukhin <bahusdrive@gmail.com>2022-12-08 16:52:54 +0200
committerChristian Soffke <christian.soffke@gmail.com>2022-12-30 19:56:44 -0500
commit178560f495b0b4c0cf3249c07ee81e94c001c312 (patch)
tree30167351674ee0edcef0655ca2809508ff74f6b3
parentb321a719d314e30e7038fdd65792e46bcb3edba0 (diff)
downloadrockbox-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
-rw-r--r--apps/gui/wps.c7
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)
case ACTION_WPS_SEEKFWD:
if (current_tick -last_right < HZ)
{
- if (state->id3->cuesheet)
+ if (state->id3->cuesheet && playlist_check(1))
{
audio_next();
}
@@ -875,10 +875,9 @@ long gui_wps_show(void)
case ACTION_WPS_SEEKBACK:
if (current_tick - last_left < HZ)
{
- if (state->id3->cuesheet)
+ if (state->id3->cuesheet && playlist_check(-1))
{
- audio_pre_ff_rewind();
- audio_ff_rewind(0);
+ audio_prev();
}
else
{