tag/Handler: add virtual method OnPicture()
Preparing for https://github.com/MusicPlayerDaemon/MPD/issues/42
This commit is contained in:
@@ -49,7 +49,7 @@ class DumpTagHandler final : public NullTagHandler {
|
||||
|
||||
public:
|
||||
DumpTagHandler() noexcept
|
||||
:NullTagHandler(WANT_DURATION|WANT_TAG|WANT_PAIR) {}
|
||||
:NullTagHandler(WANT_DURATION|WANT_TAG|WANT_PAIR|WANT_PICTURE) {}
|
||||
|
||||
bool IsEmpty() const noexcept {
|
||||
return empty;
|
||||
@@ -74,6 +74,11 @@ public:
|
||||
void OnAudioFormat(AudioFormat af) noexcept override {
|
||||
printf("%s\n", ToString(af).c_str());
|
||||
}
|
||||
|
||||
void OnPicture(const char *mime_type,
|
||||
ConstBuffer<void> buffer) noexcept override {
|
||||
printf("picture mime='%s' size=%zu\n", mime_type, buffer.size);
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
Reference in New Issue
Block a user