mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
When calling setAutoDelete() on the implicitly shared copy of a list, also auto-deletion of the original container was modified because it was not detached. On the other hand, detach() was called by some methods getting an Iterator parameter, which can lead to modification of other implicitly shared copies but not the object is was called on. This happens when the method is called on a not-already-detached container, which is normally not the case because the container is detached when the iterator is taken (e.g. calling begin()). In such methods detach() cannot be called, and the client must make sure that the iterator is taken after making an implicit copy. This will NOT work: List<int> l1 = { 1 }; auto it = l1.begin(); List<int> l2 = l1; l1.erase(it); This will modify both l1 and l2. The second and the third lines must be swapped so that l1.begin() will detach l1 from l2. |
||
---|---|---|
.github | ||
3rdparty | ||
bindings | ||
cmake/modules | ||
doc | ||
examples | ||
taglib | ||
tests | ||
.astylerc | ||
.editorconfig | ||
.gitignore | ||
.gitmodules | ||
AUTHORS | ||
cmake_uninstall.cmake.in | ||
CMakeLists.txt | ||
config.h.cmake | ||
ConfigureChecks.cmake | ||
COPYING.LGPL | ||
COPYING.MPL | ||
Doxyfile.cmake | ||
INSTALL.md | ||
NEWS | ||
README.md | ||
taglib-config.cmake | ||
taglib-config.cmake.in | ||
taglib-config.cmd.cmake | ||
taglib.pc.cmake |
TagLib
TagLib Audio Metadata Library
TagLib is a library for reading and editing the metadata of several popular audio formats. Currently, it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags in FLAC, MPC, Speex, WavPack, TrueAudio, WAV, AIFF, MP4, APE, and ASF files.
TagLib is distributed under the GNU Lesser General Public License (LGPL) and Mozilla Public License (MPL). Essentially that means that it may be used in proprietary applications, but if changes are made to TagLib they must be contributed back to the project. Please review the licenses if you are considering using TagLib in your project.