diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2007-11-05 01:56:12 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2007-11-05 01:56:12 +0000 |
| commit | d02b5c744e39ea87980f75ad172aaaf0fcb29252 (patch) | |
| tree | 0e4ce0b6bbba1ab3f7158a742a6a97d5766c7465 /apps/codecs | |
| parent | 6be390f21091ac3438d4ddb7935d985f2e4286ab (diff) | |
| download | rockbox-d02b5c744e39ea87980f75ad172aaaf0fcb29252.zip rockbox-d02b5c744e39ea87980f75ad172aaaf0fcb29252.tar.gz rockbox-d02b5c744e39ea87980f75ad172aaaf0fcb29252.tar.bz2 rockbox-d02b5c744e39ea87980f75ad172aaaf0fcb29252.tar.xz | |
Don't keep useless id3v2 or other leading tag data on the buffer, it could be large
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15465 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
| -rw-r--r-- | apps/codecs/mpa.c | 3 | ||||
| -rw-r--r-- | apps/codecs/shorten.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index 6d98677..113c81b 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -95,8 +95,7 @@ next_track: current_frequency = ci->id3->frequency; codec_set_replaygain(ci->id3); - ci->request_buffer(&size, ci->id3->first_frame_offset); - ci->advance_buffer(size); + 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]; diff --git a/apps/codecs/shorten.c b/apps/codecs/shorten.c index 4b80367..fdc8142 100644 --- a/apps/codecs/shorten.c +++ b/apps/codecs/shorten.c @@ -68,8 +68,7 @@ next_track: /* Skip id3v2 tags */ if (ci->id3->first_frame_offset) { - buf = ci->request_buffer(&bytesleft, ci->id3->first_frame_offset); - ci->advance_buffer(ci->id3->first_frame_offset); + ci->seek_buffer(ci->id3->first_frame_offset); } /* Read the shorten & wave headers */ |