forked from len0rd/rockbox
AB repeat: fix bug that prevents to jump to beginning of track
Change-Id: Ia323a2b16eaaf7d9afa888b71fd8b20fd9e2e62c
This commit is contained in:
parent
d57e65109a
commit
ce26212138
1 changed files with 3 additions and 6 deletions
|
|
@ -915,14 +915,11 @@ long gui_wps_show(void)
|
||||||
#ifdef AB_REPEAT_ENABLE
|
#ifdef AB_REPEAT_ENABLE
|
||||||
/* if we're in A/B repeat mode and the current position
|
/* if we're in A/B repeat mode and the current position
|
||||||
is past the A marker, jump back to the A marker... */
|
is past the A marker, jump back to the A marker... */
|
||||||
if ( ab_repeat_mode_enabled() )
|
if ( ab_repeat_mode_enabled() && ab_after_A_marker(state->id3->elapsed) )
|
||||||
{
|
|
||||||
if ( ab_after_A_marker(state->id3->elapsed) )
|
|
||||||
{
|
{
|
||||||
ab_jump_to_A_marker();
|
ab_jump_to_A_marker();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
/* ...otherwise, do it normally */
|
/* ...otherwise, do it normally */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue