1
0
Fork 0
forked from len0rd/rockbox

Save empty resume information if the playlist has ended

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9717 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-04-18 16:45:44 +00:00
parent 095ad1a39c
commit 7df187f20e

View file

@ -1651,8 +1651,12 @@ static void stop_codec_flush(void)
static void audio_stop_playback(void) static void audio_stop_playback(void)
{ {
/* If we were playing, save resume information */
if (playing) 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; playing = false;
filling = false; filling = false;
paused = false; paused = false;