summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAntonius Hellmann <toni@rockbox.org>2009-02-23 16:21:05 +0000
committerAntonius Hellmann <toni@rockbox.org>2009-02-23 16:21:05 +0000
commit56f4723d197eaa833a802630737f83f299166a7c (patch)
tree7dd9ee33c3ec851d93e2492906d1df246cc0436c /apps
parent9bcb96f4908c480727de5cafa804d476c6819790 (diff)
Check for buffer low condition in AlbumArt bitmap loading to assure correct AA display for all tracks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20092 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c
index deaebfbdf0..3d22b90bf5 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1805,7 +1805,12 @@ static void audio_finish_load_track(void)
{
char aa_path[MAX_PATH];
if (find_albumart(track_id3, aa_path, sizeof(aa_path)))
+ {
tracks[track_widx].aa_hid = bufopen(aa_path, 0, TYPE_BITMAP);
+
+ if(tracks[track_widx].aa_hid == ERR_BUFFER_FULL)
+ return; /* No space for track's album art, not an error */
+ }
}
#endif