diff options
author | Antonius Hellmann <toni@rockbox.org> | 2009-02-23 16:21:05 +0000 |
---|---|---|
committer | Antonius Hellmann <toni@rockbox.org> | 2009-02-23 16:21:05 +0000 |
commit | 56f4723d197eaa833a802630737f83f299166a7c (patch) | |
tree | 7dd9ee33c3ec851d93e2492906d1df246cc0436c /apps | |
parent | 9bcb96f4908c480727de5cafa804d476c6819790 (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.c | 5 |
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 |