mirror of
https://github.com/taglib/taglib.git
synced 2025-07-14 11:04:17 -04:00
Fix ID3v2 version handling for embedded frames
This commit is contained in:
committed by
Urs Fleisch
parent
0470c2894d
commit
50b89ad19a
@ -294,8 +294,10 @@ ByteVector ChapterFrame::renderFields() const
|
||||
data.append(ByteVector::fromUInt(d->startOffset, true));
|
||||
data.append(ByteVector::fromUInt(d->endOffset, true));
|
||||
FrameList l = d->embeddedFrameList;
|
||||
for(FrameList::ConstIterator it = l.begin(); it != l.end(); ++it)
|
||||
for(FrameList::ConstIterator it = l.begin(); it != l.end(); ++it) {
|
||||
(*it)->header()->setVersion(header()->version());
|
||||
data.append((*it)->render());
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
@ -344,8 +344,10 @@ ByteVector TableOfContentsFrame::renderFields() const
|
||||
it++;
|
||||
}
|
||||
FrameList l = d->embeddedFrameList;
|
||||
for(FrameList::ConstIterator it = l.begin(); it != l.end(); ++it)
|
||||
for(FrameList::ConstIterator it = l.begin(); it != l.end(); ++it) {
|
||||
(*it)->header()->setVersion(header()->version());
|
||||
data.append((*it)->render());
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
@ -55,6 +55,8 @@ namespace TagLib {
|
||||
{
|
||||
friend class Tag;
|
||||
friend class FrameFactory;
|
||||
friend class TableOfContentsFrame;
|
||||
friend class ChapterFrame;
|
||||
|
||||
public:
|
||||
|
||||
|
Reference in New Issue
Block a user