From 4df825be4325919a843cdb1181bc435645212a51 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Thu, 7 Apr 2011 20:33:00 +0000 Subject: Fix regressions of r29682. Update playlist index resume position when playlist changes (e.g. shuffling, inserting, removing, ...). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29690 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index ea26ed12ab..457553067e 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -233,6 +233,14 @@ static void audio_stop_playback(void); /**************************************/ +/** Playlist callback */ + +/* This callback is required to update the resume index in case of changing + * a playlist and pausing/resuming before the next track change. */ +void playback_set_playlist_index(int index) +{ + thistrack_id3->index = index; +} /** Pcmbuf callbacks */ -- cgit v1.2.3