summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-04-18 16:45:44 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-04-18 16:45:44 +0000
commit7df187f20ec360c41c3df96e301441a2b7ea98b5 (patch)
tree8436723fe3548cab048fba6894c672a6ecd614f8 /apps
parent095ad1a39c5bacfa2fba30cf1f9e5c82c31ae674 (diff)
downloadrockbox-7df187f20ec360c41c3df96e301441a2b7ea98b5.tar.gz
rockbox-7df187f20ec360c41c3df96e301441a2b7ea98b5.zip
Save empty resume information if the playlist has ended
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9717 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 3f4aee3e9b..8fcaf0cb43 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1651,8 +1651,12 @@ static void stop_codec_flush(void)
static void audio_stop_playback(void)
{
+ /* If we were playing, save resume information */
if (playing)
- playlist_update_resume_info(audio_current_track());
+ {
+ /* Save the current playing spot, or NULL if the playlist has ended */
+ playlist_update_resume_info(playlist_end?NULL:audio_current_track());
+ }
playing = false;
filling = false;
paused = false;