summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-10-28 09:44:24 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-10-28 09:44:24 +0000
commitc225790e26d907593565b316dd946b6d2054f7a3 (patch)
tree45ad727c64149ab9cd7e63b991a6263bc830934b
parent1a2712072b79025b1741b6f576cc9164c06242e7 (diff)
downloadrockbox-c225790e26d907593565b316dd946b6d2054f7a3.tar.gz
rockbox-c225790e26d907593565b316dd946b6d2054f7a3.zip
Now clears the resume point at end-of-list. This fixes bug #627344.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2756 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/wps.c b/apps/wps.c
index dd3649e838..3e48333818 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -406,14 +406,16 @@ static bool ffwd_rew(int button)
static bool update(void)
{
bool track_changed = mpeg_has_changed_track();
+ bool retcode = false;
if (track_changed)
{
lcd_stop_scroll();
id3 = mpeg_current_track();
if (wps_display(id3))
- return true;
- wps_refresh(id3,0,true);
+ retcode = true;
+ else
+ wps_refresh(id3,0,true);
}
if (id3)
@@ -437,7 +439,7 @@ static bool update(void)
settings_save();
}
- return false;
+ return retcode;
}