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:
parent
095ad1a39c
commit
7df187f20e
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue