From 37d990b3904383f018101033f20649476a1ebbd9 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 10 Jan 2015 23:29:10 +0100 Subject: [PATCH] Ignore non-artwork jpg's and png's during filescan (so ffmpeg doesn't waste time analyzing them) --- src/filescanner.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/filescanner.c b/src/filescanner.c index 439a2331..ae90c051 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -213,6 +213,9 @@ file_type_get(const char *path) { if (artwork_file_is_artwork(filename)) return FILE_ARTWORK; + if ((strcasecmp(ext, ".jpg") == 0) || (strcasecmp(ext, ".png") == 0)) + return FILE_IGNORE; + #ifdef ITUNES if (strcasecmp(ext, ".xml") == 0) return FILE_ITUNES;