summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2008-02-29 23:27:55 +0000
committerSteve Bavin <pondlife@pondlife.me>2008-02-29 23:27:55 +0000
commitbda6f573da23e4b09c57556a6a72d6ddfe1e65e0 (patch)
tree3b90edc49c835bf6f8f85287ea3ae20587d101f9 /apps
parent886549010611e06b1589f9bc7b18895ad2e707be (diff)
downloadrockbox-bda6f573da23e4b09c57556a6a72d6ddfe1e65e0.zip
rockbox-bda6f573da23e4b09c57556a6a72d6ddfe1e65e0.tar.gz
rockbox-bda6f573da23e4b09c57556a6a72d6ddfe1e65e0.tar.bz2
rockbox-bda6f573da23e4b09c57556a6a72d6ddfe1e65e0.tar.xz
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
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 198337c..57fca1c 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);