summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-04-14 10:52:16 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-04-14 10:52:16 +0000
commit3c9625969bd6dc235ac5fc8a1678ce7d89a9203c (patch)
tree86b26fe8508197344608c4464bc25e21f0c93d4e /apps
parentdada3242d5670828a7d547f050afda10c147f2c3 (diff)
downloadrockbox-3c9625969bd6dc235ac5fc8a1678ce7d89a9203c.zip
rockbox-3c9625969bd6dc235ac5fc8a1678ce7d89a9203c.tar.gz
rockbox-3c9625969bd6dc235ac5fc8a1678ce7d89a9203c.tar.bz2
rockbox-3c9625969bd6dc235ac5fc8a1678ce7d89a9203c.tar.xz
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
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c
index fea9392..6f18b57 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))
{