summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-28 04:34:07 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-28 04:34:07 +0000
commitf51189cd5e11cec965b23fc9c48bcbbd214bcaa6 (patch)
treed6dd0770b0181af3dad5714b4e95b16cbfd9157a /apps/recorder
parent34589f6ccb19f2689255226fd8ee5fc612d5e632 (diff)
downloadrockbox-f51189cd5e11cec965b23fc9c48bcbbd214bcaa6.zip
rockbox-f51189cd5e11cec965b23fc9c48bcbbd214bcaa6.tar.gz
rockbox-f51189cd5e11cec965b23fc9c48bcbbd214bcaa6.tar.bz2
rockbox-f51189cd5e11cec965b23fc9c48bcbbd214bcaa6.tar.xz
Suggested by Thomas Martitz, don't check for track-specific files when searching for covers in PictureFlow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21111 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/albumart.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c
index e052906..d0026b6 100644
--- a/apps/recorder/albumart.c
+++ b/apps/recorder/albumart.c
@@ -156,13 +156,17 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
albumlen = id3->album ? strlen(id3->album) : 0;
/* 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);
- strcat(path, "." EXT);
-#ifdef USE_JPEG_COVER
- pathlen = strlen(path);
-#endif
- found = try_exts(path, pathlen);
+ if (*size_string == ':')
+ size_string++;
+ else {
+ strip_extension(path, sizeof(path) - strlen(size_string) - 4, trackname);
+ strcat(path, size_string);
+ strcat(path, "." EXT);
+ #ifdef USE_JPEG_COVER
+ pathlen = strlen(path);
+ #endif
+ found = try_exts(path, pathlen);
+ }
if (!found && albumlen > 0)
{
/* if it doesn't exist,