decoder/mad: convert Tag** parameter to just Tag*

This commit is contained in:
Max Kellermann
2018-10-21 19:41:34 +02:00
parent a491d8ae24
commit e28d1e0f65
3 changed files with 18 additions and 35 deletions

View File

@@ -329,15 +329,13 @@ scan_id3_tag(const struct id3_tag *tag, TagHandler &handler) noexcept
tag_id3_import_ufid(tag, handler);
}
std::unique_ptr<Tag>
Tag
tag_id3_import(const struct id3_tag *tag) noexcept
{
TagBuilder tag_builder;
AddTagHandler h(tag_builder);
scan_id3_tag(tag, h);
return tag_builder.empty()
? nullptr
: tag_builder.CommitNew();
return tag_builder.Commit();
}
bool