mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Avoid trying to remove tag chunks when an AIFF file doesn't have an ID3v2 tag.
This commit is contained in:
parent
fcdf7c2ae2
commit
f9e558eef5
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user