SongSave: omit FixTagString() for strings from the database file

Strings in the database should have been sanitized already, so let's
not waste CPU on this.
This commit is contained in:
Max Kellermann 2023-09-06 16:11:53 +02:00
parent a573d57de8
commit 2c01e79b47

View File

@ -92,7 +92,7 @@ song_load(LineReader &file, const char *uri,
TagType type; TagType type;
if ((type = tag_name_parse(line)) != TAG_NUM_OF_ITEM_TYPES) { if ((type = tag_name_parse(line)) != TAG_NUM_OF_ITEM_TYPES) {
tag.AddItem(type, value); tag.AddItemUnchecked(type, value);
} else if (StringIsEqual(line, "Time")) { } else if (StringIsEqual(line, "Time")) {
tag.SetDuration(SignedSongTime::FromS(ParseDouble(value))); tag.SetDuration(SignedSongTime::FromS(ParseDouble(value)));
} else if (StringIsEqual(line, "Target")) { } else if (StringIsEqual(line, "Target")) {