From 1b34c9d555c8213c223b92b0ae85d7cbaaf9f69c Mon Sep 17 00:00:00 2001 From: Ace Jones Date: Wed, 13 Jan 2010 19:42:18 +0100 Subject: [PATCH] Always set media_kind, for real The problem is, you can't set INITIAL values for the file scanner, because the filescanner doesn't fill in values on top of already existing values. --- src/filescanner.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/filescanner.c b/src/filescanner.c index a641a978..e07ea1cb 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -250,10 +250,6 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation) } } - /* These will eventually be overridden by the actual filescanner */ - mfi.item_kind = 2; /* music */ - mfi.media_kind = 1; /* music */ - /* General case */ if (ret < 0) { @@ -271,6 +267,11 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation) mfi.compilation = compilation; + if (!mfi.item_kind) + mfi.item_kind = 2; /* music */ + if (!mfi.media_kind) + mfi.media_kind = 1; /* music */ + fixup_tags(&mfi); if (mfi.id == 0)