(Related to #612)
FLAC::File::save() may write duplicate ID3v2 tags any number of times. For example:
void testSaveTags()
{
ScopedFileCopy copy("no-tags", ".flac");
FLAC::File f(copy.fileName().c_str());
f.ID3v2Tag(true)->setTitle("0123456789");
f.save();
f.save();
// ID3v2 tag has been written twice, and overwritten by metadata blocks.
// As a result, FLAC stream header has gone.
}
I already found a way to fix it. But it may interfere with #557, so I will fix it after it will be merged.
该提问来源于开源项目:taglib/taglib