From bda6f573da23e4b09c57556a6a72d6ddfe1e65e0 Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Fri, 29 Feb 2008 23:27:55 +0000 Subject: Fix odd behaviour when rebuffering occurs during playback. This is hopefully the last nail in the coffins of FS#8455 and FS#8513, but I'll let some FLAC and Ogg users be the judge of that. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16459 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/playback.c b/apps/playback.c index 198337cd61..57fca1c00f 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -687,7 +687,6 @@ static void audio_skip(int direction) wps_offset += direction; /* Immediately update the playlist index */ playlist_next(direction); - last_peek_offset -= direction; track_changed = true; } else @@ -2046,11 +2045,11 @@ static int audio_check_new_track(void) } } + /* Update the playlist */ + last_peek_offset -= ci.new_track; + if (auto_dir_skip) { - /* Update the playlist */ - last_peek_offset -= ci.new_track; - /* If the track change was the result of an auto dir skip, we need to update the playlist now */ next_playlist_index = playlist_next(ci.new_track); -- cgit v1.2.3