StripAll should be treated as equivalent to StripOthers in save()

This commit is contained in:
Scott Wheeler 2019-09-12 07:57:16 +02:00
parent 074f30e3fa
commit de25bc6111
2 changed files with 2 additions and 2 deletions

View 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) {

View 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) {