From 69cf4f57ac3ac2b4c7e7d30128ee5d0cd86979a6 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Wed, 26 Apr 2006 04:31:06 +0000 Subject: [PATCH] This seems to fix a few bugs in that git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9811 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/playback.c b/apps/playback.c index e10c9e7314..2bde733ecf 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -940,7 +940,10 @@ static void audio_check_new_track(void) playlist_next(ci.new_track); if (new_playlist) + { ci.new_track = 1; + new_playlist = false; + } track_ridx+=ci.new_track; if (track_ridx >= MAX_TRACK) @@ -2095,6 +2098,9 @@ static void audio_new_playlist(void) close(current_fd); current_fd = -1; + /* Mark the current track as invalid to prevent skipping back to it */ + cur_ti->taginfo_ready = false; + /* Invalidate the buffer other than the playing track */ filebufused = cur_ti->available; buf_widx = buf_ridx + cur_ti->available;