getting started with ios

patrick machielse patrick at hieper.nl
Wed Mar 26 22:19:25 UTC 2014


Op 26 mrt. 2014, om 19:52 heeft Christopher Scott <chris at phatfly.com> het volgende geschreven:

> TagLib::ID3v2::FrameList l = f.ID3v2Tag()->frameListMap()["PRIV"];

My C++ is knowledge is not stellar, but I think you might want to say:

TagLib::ID3v2::FrameList &l = f.ID3v2Tag()->frameListMap()["PRIV"];

This way you get a reference to the FrameList in frameListMap(). In your code I think you are making an implicit (deep) copy of the FrameList, and you can't remove those copied frames from the tag.

p.
--
Patrick Machielse
Hieper Software

http://www.hieper.nl
info at hieper.nl



More information about the taglib-devel mailing list