diff options
author | Max Kellermann <max@duempel.org> | 2014-12-26 22:23:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-26 22:23:55 +0100 |
commit | 7077eac589bf828188e7dbcfb4ac6002203063d4 (patch) | |
tree | 6defd83393625926672edc4d7b8a682af6fbdff7 | |
parent | b3435ae43292bb0b0381485fa48896f33ff6f402 (diff) | |
download | mpd-7077eac589bf828188e7dbcfb4ac6002203063d4.tar.gz mpd-7077eac589bf828188e7dbcfb4ac6002203063d4.tar.xz mpd-7077eac589bf828188e7dbcfb4ac6002203063d4.zip |
test/FakeDecoderAPI: dump tags
-rw-r--r-- | test/FakeDecoderAPI.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/FakeDecoderAPI.cxx b/test/FakeDecoderAPI.cxx index 3c7453a4f..7368a48b8 100644 --- a/test/FakeDecoderAPI.cxx +++ b/test/FakeDecoderAPI.cxx @@ -145,8 +145,13 @@ decoder_data(gcc_unused Decoder &decoder, DecoderCommand decoder_tag(gcc_unused Decoder &decoder, gcc_unused InputStream *is, - gcc_unused Tag &&tag) + Tag &&tag) { + fprintf(stderr, "TAG: duration=%f\n", tag.duration.ToDoubleS()); + + for (const auto &i : tag) + fprintf(stderr, " %s=%s\n", tag_item_names[i.type], i.value); + return DecoderCommand::NONE; } |