summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-01 23:46:51 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-01 23:46:51 +0000
commitb40878043c521c82a8c5d1ca603180fd112d50d6 (patch)
tree79e9c166d126b2b41d83275e75e37afd15641e97
parent54e6eb3bdaea5a904d77a50866cb400857427c08 (diff)
downloadrockbox-b40878043c521c82a8c5d1ca603180fd112d50d6.tar.gz
rockbox-b40878043c521c82a8c5d1ca603180fd112d50d6.zip
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
-rw-r--r--apps/recorder/albumart.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c
index cf4a3e8e11..3adedc8159 100644
--- a/apps/recorder/albumart.c
+++ b/apps/recorder/albumart.c
@@ -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,