From 6f579ddc95098b5ec54c8885a7e7cff1aae0cd04 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2020 21:55:21 +0100 Subject: [PATCH] test/DumpDecoderClient: allow overriding GetCommand() --- test/DumpDecoderClient.cxx | 4 ++-- test/DumpDecoderClient.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/DumpDecoderClient.cxx b/test/DumpDecoderClient.cxx index 35c787b45..75a8c44e3 100644 --- a/test/DumpDecoderClient.cxx +++ b/test/DumpDecoderClient.cxx @@ -101,7 +101,7 @@ DumpDecoderClient::SubmitData(gcc_unused InputStream *is, } gcc_unused ssize_t nbytes = write(STDOUT_FILENO, data, datalen); - return DecoderCommand::NONE; + return GetCommand(); } DecoderCommand @@ -113,7 +113,7 @@ DumpDecoderClient::SubmitTag(gcc_unused InputStream *is, for (const auto &i : tag) fprintf(stderr, " %s=%s\n", tag_item_names[i.type], i.value); - return DecoderCommand::NONE; + return GetCommand(); } static void diff --git a/test/DumpDecoderClient.hxx b/test/DumpDecoderClient.hxx index 053b4780c..5bba313c6 100644 --- a/test/DumpDecoderClient.hxx +++ b/test/DumpDecoderClient.hxx @@ -27,7 +27,7 @@ * A #DecoderClient implementation which dumps metadata to stderr and * decoded data to stdout. */ -class DumpDecoderClient final : public DecoderClient { +class DumpDecoderClient : public DecoderClient { bool initialized = false; uint16_t prev_kbit_rate = 0;