1
0
Fork 0
forked from len0rd/rockbox

More error handling, handles empty MP3 files now. Part 2.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2031 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-08-28 11:50:19 +00:00
parent 606b0f545d
commit cfbdf142bc

View file

@ -671,8 +671,6 @@ static int new_file(int steps)
{
int new_tag_idx = tag_write_idx;
index = playlist_next(steps);
if(add_track_to_tag_list(trackname))
{
/* Bad mp3 file */
@ -682,6 +680,8 @@ static int new_file(int steps)
}
else
{
index = playlist_next(steps);
/* skip past id3v2 tag (to an even byte) */
lseek(mpeg_file,
id3tags[new_tag_idx]->id3.id3v2len & ~1,