Ignore non-artwork jpg's and png's during filescan

(so ffmpeg doesn't waste time analyzing them)
This commit is contained in:
ejurgensen 2015-01-10 23:29:10 +01:00
parent 920171658f
commit 37d990b390

View File

@ -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;