diff options
| author | Robert Kukla <roolku@rockbox.org> | 2007-03-25 17:12:27 +0000 |
|---|---|---|
| committer | Robert Kukla <roolku@rockbox.org> | 2007-03-25 17:12:27 +0000 |
| commit | 77983681caf10128a05a3b4dff6b5459b9dfb409 (patch) | |
| tree | 1cd7ed21d284921818cfd45fc8f4c0a5bc0ef434 | |
| parent | 8b7a27d189f2268dc8d554a373a06738760c3404 (diff) | |
| download | rockbox-77983681caf10128a05a3b4dff6b5459b9dfb409.zip rockbox-77983681caf10128a05a3b4dff6b5459b9dfb409.tar.gz rockbox-77983681caf10128a05a3b4dff6b5459b9dfb409.tar.bz2 rockbox-77983681caf10128a05a3b4dff6b5459b9dfb409.tar.xz | |
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
| -rw-r--r-- | apps/playback.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c index ca30e0c..2511a62 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -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; |