From b40878043c521c82a8c5d1ca603180fd112d50d6 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Fri, 1 May 2009 23:46:51 +0000 Subject: 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 --- apps/recorder/albumart.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps') 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, -- cgit v1.2.3