summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tag/Handler.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tag/Handler.hxx b/src/tag/Handler.hxx
index 944c73114..1eec14cbc 100644
--- a/src/tag/Handler.hxx
+++ b/src/tag/Handler.hxx
@@ -99,11 +99,12 @@ protected:
TagBuilder &tag;
AddTagHandler(unsigned _want_mask, TagBuilder &_builder) noexcept
- :NullTagHandler(_want_mask), tag(_builder) {}
+ :NullTagHandler(WANT_DURATION|WANT_TAG|_want_mask),
+ tag(_builder) {}
public:
explicit AddTagHandler(TagBuilder &_builder) noexcept
- :AddTagHandler(WANT_DURATION|WANT_TAG, _builder) {}
+ :AddTagHandler(0, _builder) {}
void OnDuration(SongTime duration) noexcept override;
void OnTag(TagType type, const char *value) noexcept override;
@@ -117,7 +118,7 @@ public:
class FullTagHandler : public AddTagHandler {
public:
explicit FullTagHandler(TagBuilder &_builder) noexcept
- :AddTagHandler(WANT_DURATION|WANT_TAG|WANT_PAIR, _builder) {}
+ :AddTagHandler(WANT_PAIR, _builder) {}
void OnPair(const char *key, const char *value) noexcept override;
};