From 3c9625969bd6dc235ac5fc8a1678ce7d89a9203c Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Mon, 14 Apr 2008 10:52:16 +0000 Subject: [PATCH] FS#8882: Fix the bug where skipping backwards with Ogg files could result in a skip forward (FS#8508). The problem was introduced by a one-line change in r16025, so we revert it. At the time I thought that line had become useless but obviously I was wrong. Thanks to Greg Erwin for finding the fix. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17107 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/playback.c b/apps/playback.c index fea939293b..6f18b57cd2 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1211,6 +1211,11 @@ static bool codec_request_next_track_callback(void) if (!codec_load_next_track()) return false; + /* Seek to the beginning of the new track because if the struct + mp3entry was buffered, "elapsed" might not be zero (if the track has + been played already but not unbuffered) */ + codec_seek_buffer_callback(curtrack_id3.first_frame_offset); + /* Check if the next codec is the same file. */ if (prev_codectype == get_codec_base_type(curtrack_id3.codectype)) {