]> granicus.if.org Git - taglib/commitdiff
StripAll should be treated as equivalent to StripOthers in `save()` v1.12-beta-1
authorScott Wheeler <scott@directededge.com>
Thu, 12 Sep 2019 05:57:16 +0000 (07:57 +0200)
committerScott Wheeler <scott@directededge.com>
Thu, 12 Sep 2019 05:57:16 +0000 (07:57 +0200)
taglib/mpeg/mpegfile.cpp
taglib/riff/wav/wavfile.cpp

index 472cbdadc4938982c282e4cbefd8ae2a44d073b9..613690ef7907b764913a36563cc5553fdfaf35f6 100644 (file)
@@ -244,7 +244,7 @@ bool MPEG::File::save(int tags, StripTags strip, ID3v2::Version version, Duplica
 
   // Remove all the tags not going to be saved.
 
-  if(strip == StripOthers)
+  if(strip == StripOthers || strip == StripAll)
     File::strip(~tags, false);
 
   if(ID3v2 & tags) {
index 3dce70b1ce463fd95c96a45c8ad93c5d9a561d55..6e00f82733c9d01ee4860ddb45b0622105102458 100644 (file)
@@ -169,7 +169,7 @@ bool RIFF::WAV::File::save(TagTypes tags, StripTags strip, ID3v2::Version versio
     return false;
   }
 
-  if(strip == StripOthers)
+  if(strip == StripOthers || strip == StripAll)
     File::strip(static_cast<TagTypes>(AllTags & ~tags));
 
   if(tags & ID3v2) {