mirror of
https://github.com/taglib/taglib.git
synced 2025-07-22 06:54:22 -04:00
Avoid trying to remove tag chunks when an AIFF file doesn't have an ID3v2 tag.
This commit is contained in:
@ -115,9 +115,11 @@ bool RIFF::AIFF::File::save()
|
||||
return false;
|
||||
}
|
||||
|
||||
removeChunk("ID3 ");
|
||||
removeChunk("id3 ");
|
||||
d->hasID3v2 = false;
|
||||
if(d->hasID3v2) {
|
||||
removeChunk("ID3 ");
|
||||
removeChunk("id3 ");
|
||||
d->hasID3v2 = false;
|
||||
}
|
||||
|
||||
if(tag() && !tag()->isEmpty()) {
|
||||
setChunkData("ID3 ", d->tag->render());
|
||||
|
Reference in New Issue
Block a user