summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-06-24 18:46:04 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-06-24 18:46:04 +0000
commit12d2d0fbc22391b5f4a8d86965382ae58d38ef04 (patch)
tree698d973635977baecd5a3fda6f48e801c99c0ac1 /apps/playback.c
parent78c45530fff6100240d08be77858350632000de9 (diff)
A patch by Robert Keevil that's been in the tracker way to long, fixes FS #6213: Audioscrobbler incorrectly submits last song
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13699 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 329e8b856b..6b4b37170d 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -3271,6 +3271,8 @@ static void audio_stop_playback(void)
/* Save the current playing spot, or NULL if the playlist has ended */
playlist_update_resume_info(id3);
+ prev_track_elapsed = CUR_TI->id3.elapsed;
+
/* Increment index so runtime info is saved in audio_clear_track_entries().
* Done here, as audio_stop_playback() may be called more than once.
* Don't update runtime unless playback is stopped because of end of playlist.