mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
StripAll should be treated as equivalent to StripOthers in save()
This commit is contained in:
parent
074f30e3fa
commit
de25bc6111
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user