1
0
Fork 0
forked from len0rd/rockbox

Get rid of those horrible macros to protect against NULL reference when looking up the id3 info for tokens.

Change the way the wps playlist viewer gets the token values. All %i tokens are now supported (and a few others, experiment :) )


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24233 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-01-15 07:20:56 +00:00
parent fafbfbc56c
commit fea4689e91
4 changed files with 239 additions and 259 deletions

View file

@ -640,8 +640,8 @@ bool audio_peek_track(struct mp3entry* id3, int offset)
if (tracks[next_idx].id3_hid >= 0)
{
bufread(tracks[next_idx].id3_hid, sizeof(struct mp3entry), id3);
return true;
return bufread(tracks[next_idx].id3_hid, sizeof(struct mp3entry), id3)
== sizeof(struct mp3entry);
}
return false;
}