summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Leonhardt <sebastian.leonhardt@web.de>2015-10-25 20:58:36 +0100
committerSebastian Leonhardt <sebastian.leonhardt@web.de>2015-10-25 20:58:36 +0100
commitce26212138d53147e3e2e91f7b864d5deada344f (patch)
tree546ff2ef67e9eaf2bf18bb52da50d2951bbbeff6
parentd57e65109ac74ce49d8ac50a00d8ef88a0065e28 (diff)
downloadrockbox-ce26212138d53147e3e2e91f7b864d5deada344f.tar.gz
rockbox-ce26212138d53147e3e2e91f7b864d5deada344f.zip
AB repeat: fix bug that prevents to jump to beginning of track
Change-Id: Ia323a2b16eaaf7d9afa888b71fd8b20fd9e2e62c
-rw-r--r--apps/gui/wps.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index d1161ea71d..31e54639cc 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -915,13 +915,10 @@ long gui_wps_show(void)
915#ifdef AB_REPEAT_ENABLE 915#ifdef AB_REPEAT_ENABLE
916 /* if we're in A/B repeat mode and the current position 916 /* if we're in A/B repeat mode and the current position
917 is past the A marker, jump back to the A marker... */ 917 is past the A marker, jump back to the A marker... */
918 if ( ab_repeat_mode_enabled() ) 918 if ( ab_repeat_mode_enabled() && ab_after_A_marker(state->id3->elapsed) )
919 { 919 {
920 if ( ab_after_A_marker(state->id3->elapsed) ) 920 ab_jump_to_A_marker();
921 { 921 break;
922 ab_jump_to_A_marker();
923 break;
924 }
925 } 922 }
926 else 923 else
927 /* ...otherwise, do it normally */ 924 /* ...otherwise, do it normally */