diff options
Diffstat (limited to 'apps/recorder/albumart.c')
-rw-r--r-- | apps/recorder/albumart.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index bba2f1b67e..e3cb5f1098 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c | |||
@@ -27,10 +27,19 @@ | |||
27 | #include "gwps.h" | 27 | #include "gwps.h" |
28 | #include "buffering.h" | 28 | #include "buffering.h" |
29 | #include "dircache.h" | 29 | #include "dircache.h" |
30 | #include "debug.h" | ||
31 | #include "misc.h" | 30 | #include "misc.h" |
32 | #include "settings.h" | 31 | #include "settings.h" |
33 | 32 | ||
33 | /* Define LOGF_ENABLE to enable logf output in this file */ | ||
34 | /*#define LOGF_ENABLE*/ | ||
35 | #include "logf.h" | ||
36 | |||
37 | #ifdef SIMULATOR | ||
38 | #define LOGFQUEUE logf | ||
39 | #else | ||
40 | #define LOGFQUEUE(...) | ||
41 | #endif | ||
42 | |||
34 | #if defined(HAVE_JPEG) || defined(PLUGIN) | 43 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
35 | #define USE_JPEG_COVER | 44 | #define USE_JPEG_COVER |
36 | #endif | 45 | #endif |
@@ -264,7 +273,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
264 | return false; | 273 | return false; |
265 | 274 | ||
266 | strncpy(buf, path, buflen); | 275 | strncpy(buf, path, buflen); |
267 | DEBUGF("Album art found: %s\n", path); | 276 | LOGFQUEUE("Album art found: %s", path); |
268 | return true; | 277 | return true; |
269 | } | 278 | } |
270 | 279 | ||
@@ -283,7 +292,7 @@ bool find_albumart(const struct mp3entry *id3, char *buf, int buflen) | |||
283 | if (!data) | 292 | if (!data) |
284 | return false; | 293 | return false; |
285 | 294 | ||
286 | DEBUGF("Looking for album art for %s\n", id3->path); | 295 | LOGFQUEUE("Looking for album art for %s", id3->path); |
287 | 296 | ||
288 | /* Write the size string, e.g. ".100x100". */ | 297 | /* Write the size string, e.g. ".100x100". */ |
289 | snprintf(size_string, sizeof(size_string), ".%dx%d", | 298 | snprintf(size_string, sizeof(size_string), ".%dx%d", |