diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2007-11-05 18:15:52 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2007-11-05 18:15:52 +0000 |
| commit | 3f69930aa0439ffe4183f6aacb3f4754bf225c30 (patch) | |
| tree | 80b26f3894ccd0ed4be14ab82294c037a7e222c6 | |
| parent | 86830b6566043f4f8fc4b75c802cacbda195f98f (diff) | |
| download | rockbox-3f69930aa0439ffe4183f6aacb3f4754bf225c30.zip rockbox-3f69930aa0439ffe4183f6aacb3f4754bf225c30.tar.gz rockbox-3f69930aa0439ffe4183f6aacb3f4754bf225c30.tar.bz2 rockbox-3f69930aa0439ffe4183f6aacb3f4754bf225c30.tar.xz | |
Fix mp3 resume
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15481 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/codecs/mpa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index e966797..3de7684 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -94,7 +94,10 @@ next_track: current_frequency = ci->id3->frequency; codec_set_replaygain(ci->id3); - ci->seek_buffer(ci->id3->first_frame_offset); + if (ci->id3->offset) + ci->seek_buffer(ci->id3->offset); + else + ci->seek_buffer(ci->id3->first_frame_offset); if (ci->id3->lead_trim >= 0 && ci->id3->tail_trim >= 0) { stop_skip = ci->id3->tail_trim - mpeg_latency[ci->id3->layer]; |