Fill in media_kind=1 for music

Also move item_kind initialization further up.
This commit is contained in:
Ace Jones 2010-01-06 18:41:27 +01:00 committed by Julien BLACHE
parent 974a74a833
commit fc971974f0

View File

@ -243,6 +243,10 @@ 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)
{
@ -259,7 +263,6 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation)
}
mfi.compilation = compilation;
mfi.item_kind = 2; /* music */
fixup_tags(&mfi);