fix bug where runtime data was not gathered for last track (end of playlist or stop button).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12909 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Kukla 2007-03-25 17:12:27 +00:00
parent 8b7a27d189
commit 77983681ca

View file

@ -3295,6 +3295,12 @@ static void audio_stop_playback(void)
/* Save the current playing spot, or NULL if the playlist has ended */
playlist_update_resume_info(
(playlist_end && ci.stop_codec)?NULL:audio_current_track());
/* inc index so runtime info is saved in audio_clear_track_entries() */
/* done here, as audio_stop_playback() may be called more than once */
track_ridx++;
track_ridx &= MAX_TRACK_MASK;
}
filling = false;