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:
parent
606b0f545d
commit
cfbdf142bc
1 changed files with 2 additions and 2 deletions
|
@ -671,8 +671,6 @@ static int new_file(int steps)
|
||||||
{
|
{
|
||||||
int new_tag_idx = tag_write_idx;
|
int new_tag_idx = tag_write_idx;
|
||||||
|
|
||||||
index = playlist_next(steps);
|
|
||||||
|
|
||||||
if(add_track_to_tag_list(trackname))
|
if(add_track_to_tag_list(trackname))
|
||||||
{
|
{
|
||||||
/* Bad mp3 file */
|
/* Bad mp3 file */
|
||||||
|
@ -682,6 +680,8 @@ static int new_file(int steps)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
index = playlist_next(steps);
|
||||||
|
|
||||||
/* skip past id3v2 tag (to an even byte) */
|
/* skip past id3v2 tag (to an even byte) */
|
||||||
lseek(mpeg_file,
|
lseek(mpeg_file,
|
||||||
id3tags[new_tag_idx]->id3.id3v2len & ~1,
|
id3tags[new_tag_idx]->id3.id3v2len & ~1,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue