test/DumpDecoderClient: allow overriding GetCommand()

This commit is contained in:
Max Kellermann 2020-02-04 21:55:21 +01:00
parent 8e4cb3217e
commit 6f579ddc95
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ DumpDecoderClient::SubmitData(gcc_unused InputStream *is,
} }
gcc_unused ssize_t nbytes = write(STDOUT_FILENO, data, datalen); gcc_unused ssize_t nbytes = write(STDOUT_FILENO, data, datalen);
return DecoderCommand::NONE; return GetCommand();
} }
DecoderCommand DecoderCommand
@ -113,7 +113,7 @@ DumpDecoderClient::SubmitTag(gcc_unused InputStream *is,
for (const auto &i : tag) for (const auto &i : tag)
fprintf(stderr, " %s=%s\n", tag_item_names[i.type], i.value); fprintf(stderr, " %s=%s\n", tag_item_names[i.type], i.value);
return DecoderCommand::NONE; return GetCommand();
} }
static void static void

View File

@ -27,7 +27,7 @@
* A #DecoderClient implementation which dumps metadata to stderr and * A #DecoderClient implementation which dumps metadata to stderr and
* decoded data to stdout. * decoded data to stdout.
*/ */
class DumpDecoderClient final : public DecoderClient { class DumpDecoderClient : public DecoderClient {
bool initialized = false; bool initialized = false;
uint16_t prev_kbit_rate = 0; uint16_t prev_kbit_rate = 0;