diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-06 12:43:45 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-06 12:44:11 +0200 |
commit | abea4a24ba4d0ff2fa9ff15a5169d58b6d920cef (patch) | |
tree | c5a4f55a1f96c433988275485ab7777f548f02c6 /src/tag/Handler.hxx | |
parent | 3d3a1232b1d2b58d2cc05b2dd5c37f2256832693 (diff) |
tag/Handler: move WANT_DURATION|WANT_TAG to protected AddTagHandler()
Diffstat (limited to 'src/tag/Handler.hxx')
-rw-r--r-- | src/tag/Handler.hxx | 7 |
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; }; |