1
0
Fork 0
forked from len0rd/rockbox

Fix AA search for file with same basename to test all extensions.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20838 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andrew Mahone 2009-05-01 23:46:51 +00:00
parent 54e6eb3bda
commit b40878043c

View file

@ -153,8 +153,14 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
/* the first file we look for is one specific to the track playing */
strip_extension(path, sizeof(path) - strlen(size_string) - 4, trackname);
strcat(path, size_string);
#if LCD_DEPTH > 1
strcat(path, ".");
pathlen = strlen(path);
found = try_exts(path, pathlen);
#else
strcat(path, ".bmp");
found = file_exists(path);
#endif
if (!found && albumlen > 0)
{
/* if it doesn't exist,