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.
This commit is contained in:
Ace Jones 2010-01-13 19:42:18 +01:00 committed by Julien BLACHE
parent ed3dbc1f35
commit 1b34c9d555

View File

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