Perform Unicode fixup before tags fixup

fixup_tags() must not be exposed to non-UTF-8 strings as it runs some of
the strings through Unicode normalization for sort tags.
This commit is contained in:
Julien BLACHE 2011-04-16 10:12:29 +02:00
parent b2afcc9b91
commit a116e2ad1f

View File

@ -381,10 +381,10 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation)
if (!mfi.media_kind)
mfi.media_kind = 1; /* music */
fixup_tags(&mfi);
unicode_fixup_mfi(&mfi);
fixup_tags(&mfi);
if (mfi.id == 0)
db_file_add(&mfi);
else