Deleting ID3v2 Frames
swaverec at gmx.net
Wed Nov 30 05:48:47 UTC 2016
On 30.11.2016 05:35, Festus Hagen wrote:
> Hi all,
> Just noticed something, don't remember this being the case and would like confirmation.
> The inability to delete certain frames.
> Maybe I'm doing something wrong?
> The basics of the code is ...
> MPEG::File audioFile(fileName);
> ID3v2::Tag *id3v2tag = audioFile.ID3v2Tag();
> ID3v2::FrameList::ConstIterator it = id3v2tag->frameList().begin();
> for(; it != id3v2tag->frameList().end(); ++it)
> id3v2tag->removeFrame((*it), true);
> audioFile.save(MPEG::File::ID3v2, false, 3);
While walking through the list you modify the list.
What happens if you walk the list backwards? Or do
More information about the taglib-devel