forked from len0rd/rockbox
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
This commit is contained in:
parent
9bcb96f490
commit
56f4723d19
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue