diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-01-15 07:20:56 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-01-15 07:20:56 +0000 |
commit | fea4689e91139ed92f2acad3c3c30afcbf1c1794 (patch) | |
tree | ba29527e52c26fb67bee64c75dbec89d8dae4191 /apps/playback.c | |
parent | fafbfbc56c3f70fe29cb2bc74666298186fa2434 (diff) |
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
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c index fca21ae1fb..b7078441c2 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -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; } |