1
0
Fork 0
forked from len0rd/rockbox

Skip past id3v2 tag when loading mp3 data

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1729 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-08-14 10:15:27 +00:00
parent 41977da3d5
commit 66f9bccd47
2 changed files with 10 additions and 9 deletions

View file

@ -624,6 +624,10 @@ static int new_file(int steps)
else
{
add_track_to_tag_list(trackname);
/* skip past id3v2 tag (to an even byte) */
lseek(mpeg_file,
id3tags[tag_read_idx]->id3.id3v2len & ~1,
SEEK_SET);
}
} while ( mpeg_file < 0 );
@ -698,6 +702,10 @@ static void mpeg_thread(void)
}
add_track_to_tag_list((char *)ev.data);
/* skip past id3v2 tag (to an even byte) */
lseek(mpeg_file,
id3tags[tag_read_idx]->id3.id3v2len & ~1,
SEEK_SET);
/* Make it read more data */
filling = true;