aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Wheeler <scott@directededge.com>2019-09-12 07:57:16 +0200
committerScott Wheeler <scott@directededge.com>2019-09-12 07:57:16 +0200
commitde25bc6111632bfdf4ae874c73fb22c483396925 (patch)
treee40e730e3f5b9f9413fb59e84c6826625846e2be
parent074f30e3faf98f0383ae2951f5f1d76ae54a4cf8 (diff)
StripAll should be treated as equivalent to StripOthers in `save()`v1.12-beta-1
-rw-r--r--taglib/mpeg/mpegfile.cpp2
-rw-r--r--taglib/riff/wav/wavfile.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/taglib/mpeg/mpegfile.cpp b/taglib/mpeg/mpegfile.cpp
index 472cbdad..613690ef 100644
--- a/taglib/mpeg/mpegfile.cpp
+++ b/taglib/mpeg/mpegfile.cpp
@@ -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) {
diff --git a/taglib/riff/wav/wavfile.cpp b/taglib/riff/wav/wavfile.cpp
index 3dce70b1..6e00f827 100644
--- a/taglib/riff/wav/wavfile.cpp
+++ b/taglib/riff/wav/wavfile.cpp
@@ -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) {