diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-01 23:46:51 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-01 23:46:51 +0000 |
commit | b40878043c521c82a8c5d1ca603180fd112d50d6 (patch) | |
tree | 79e9c166d126b2b41d83275e75e37afd15641e97 /apps | |
parent | 54e6eb3bdaea5a904d77a50866cb400857427c08 (diff) | |
download | rockbox-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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/albumart.c | 6 |
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, | |||
153 | /* the first file we look for is one specific to the track playing */ | 153 | /* the first file we look for is one specific to the track playing */ |
154 | strip_extension(path, sizeof(path) - strlen(size_string) - 4, trackname); | 154 | strip_extension(path, sizeof(path) - strlen(size_string) - 4, trackname); |
155 | strcat(path, size_string); | 155 | strcat(path, size_string); |
156 | #if LCD_DEPTH > 1 | ||
157 | strcat(path, "."); | ||
158 | pathlen = strlen(path); | ||
159 | found = try_exts(path, pathlen); | ||
160 | #else | ||
156 | strcat(path, ".bmp"); | 161 | strcat(path, ".bmp"); |
157 | found = file_exists(path); | 162 | found = file_exists(path); |
163 | #endif | ||
158 | if (!found && albumlen > 0) | 164 | if (!found && albumlen > 0) |
159 | { | 165 | { |
160 | /* if it doesn't exist, | 166 | /* if it doesn't exist, |