Skip to content

Commit

Permalink
Merge remote-tracking branch 'robux4/min_deprecated'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbunkus committed Jan 31, 2024
2 parents ff49764 + efd91a8 commit 064b828
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ebml/EbmlElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,12 @@ class EBML_DLL_API EbmlElement {
static bool WriteSkipDefault(const EbmlElement &elt) {
if (elt.IsDefaultValue())
return false;
return true;
return !elt.ElementSpec().GetVersions().IsAlwaysDeprecated();
}

static bool WriteAll(const EbmlElement &) {
return true;
// write all elements except deprecated ones
static bool WriteAll(const EbmlElement & elt) {
return !elt.ElementSpec().GetVersions().IsAlwaysDeprecated();
}

explicit EbmlElement(const EbmlCallbacks &, std::uint64_t aDefaultSize, bool bValueSet = false);
Expand Down

0 comments on commit 064b828

Please sign in to comment.