diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-04-07 20:33:00 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-04-07 20:33:00 +0000 |
commit | 4df825be4325919a843cdb1181bc435645212a51 (patch) | |
tree | b182fd1f5a5fbbc0fa0c8867e6974e7e5cc1dc22 /apps/playback.c | |
parent | 37990206dd28c10ab0470e4d7171ca993013a93c (diff) | |
download | rockbox-4df825be4325919a843cdb1181bc435645212a51.tar.gz rockbox-4df825be4325919a843cdb1181bc435645212a51.zip |
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
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); | |||
233 | 233 | ||
234 | /**************************************/ | 234 | /**************************************/ |
235 | 235 | ||
236 | /** Playlist callback */ | ||
237 | |||
238 | /* This callback is required to update the resume index in case of changing | ||
239 | * a playlist and pausing/resuming before the next track change. */ | ||
240 | void playback_set_playlist_index(int index) | ||
241 | { | ||
242 | thistrack_id3->index = index; | ||
243 | } | ||
236 | 244 | ||
237 | /** Pcmbuf callbacks */ | 245 | /** Pcmbuf callbacks */ |
238 | 246 | ||