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:
parent
54e6eb3bda
commit
b40878043c
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue