summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-04-06 19:11:40 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-04-06 19:11:40 +0000
commit3184cbe10add23e0e4e53523a06e311db0ba15cd (patch)
tree398f34c994e26a3255337b583824952721ab378e /apps/playback.c
parentc7227a76206960f8373def21aea71cd1b7e9e5c4 (diff)
Fix FS#12043. Next track was resumed when pausing and shutting down the player in the last seconds of a track.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29682 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 2c34adf12d..ea26ed12ab 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -2207,6 +2207,8 @@ static void audio_thread(void)
case Q_AUDIO_TRACK_CHANGED:
/* PCM track change done */
LOGFQUEUE("audio < Q_AUDIO_TRACK_CHANGED");
+ /* Set new playlist position for resuming. */
+ thistrack_id3->index = playlist_get_index();
if (filling != STATE_ENDING)
audio_finalise_track_change();
else if (playing)