mirror of
https://github.com/taglib/taglib.git
synced 2025-07-23 15:34:30 -04:00
Don't save ID3v2.2 frames.
Patch by Marc Halbruegge BUG:176373 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@994842 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -352,6 +352,11 @@ ByteVector ID3v2::Tag::render() const
|
||||
// Loop through the frames rendering them and adding them to the tagData.
|
||||
|
||||
for(FrameList::Iterator it = d->frameList.begin(); it != d->frameList.end(); it++) {
|
||||
if ((*it)->header()->frameID().size() != 4) {
|
||||
debug("A frame of unsupported or unknown type \'"
|
||||
+ String((*it)->header()->frameID()) + "\' has been discarded");
|
||||
continue;
|
||||
}
|
||||
if(!(*it)->header()->tagAlterPreservation())
|
||||
tagData.append((*it)->render());
|
||||
}
|
||||
|
Reference in New Issue
Block a user