Skip to content

Commit de25bc6

Browse files
committed
StripAll should be treated as equivalent to StripOthers in save()
1 parent 074f30e commit de25bc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

taglib/mpeg/mpegfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ bool MPEG::File::save(int tags, StripTags strip, ID3v2::Version version, Duplica
244244

245245
// Remove all the tags not going to be saved.
246246

247-
if(strip == StripOthers)
247+
if(strip == StripOthers || strip == StripAll)
248248
File::strip(~tags, false);
249249

250250
if(ID3v2 & tags) {

taglib/riff/wav/wavfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ bool RIFF::WAV::File::save(TagTypes tags, StripTags strip, ID3v2::Version versio
169169
return false;
170170
}
171171

172-
if(strip == StripOthers)
172+
if(strip == StripOthers || strip == StripAll)
173173
File::strip(static_cast<TagTypes>(AllTags & ~tags));
174174

175175
if(tags & ID3v2) {

0 commit comments

Comments
 (0)