From c225790e26d907593565b316dd946b6d2054f7a3 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 28 Oct 2002 09:44:24 +0000 Subject: [PATCH] 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 --- apps/wps.c | 8 +++++--- 1 file 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; }