summaryrefslogtreecommitdiff
path: root/plugins/artwork
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-05 21:49:56 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-05 21:49:56 +0200
commit5ebe1b869b960078cbb26c0b90a848be9800ff18 (patch)
tree1b8090a483001d33985516bb87defc6503a7d333 /plugins/artwork
parent3e56c4fa4b69e20afda0c162714549ee116e06cc (diff)
fixed artwork cache resetting in multiple places (bug #1143)
Diffstat (limited to 'plugins/artwork')
-rw-r--r--plugins/artwork/artwork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c
index e69c61e4..32cd1b96 100644
--- a/plugins/artwork/artwork.c
+++ b/plugins/artwork/artwork.c
@@ -122,7 +122,7 @@ static time_t artwork_reset_time;
static char artwork_filemask[200];
static const char *get_default_cover (void) {
-return default_cover;
+ return default_cover;
}
static int
@@ -1387,7 +1387,7 @@ find_image (const char *path) {
// invalidate cache every 2 days
if ((cache_period > 0 && (tm - stat_buf.st_mtime > cache_period * 60 * 60))
|| artwork_reset_time > stat_buf.st_mtime) {
- trace ("reloading cached file %s\n", path);
+ trace ("deleting cached file %s\n", path);
unlink (path);
return NULL;
}