From 2e47cb12c4f1ee54f37ac2b72bfde23e864b3cbd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 10 Nov 2014 09:00:38 +0100 Subject: test/FakeDecoderAPI: dump bit rate --- test/FakeDecoderAPI.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/FakeDecoderAPI.cxx b/test/FakeDecoderAPI.cxx index dcc78125b..3c7453a4f 100644 --- a/test/FakeDecoderAPI.cxx +++ b/test/FakeDecoderAPI.cxx @@ -132,6 +132,12 @@ decoder_data(gcc_unused Decoder &decoder, const void *data, size_t datalen, gcc_unused uint16_t kbit_rate) { + static uint16_t prev_kbit_rate; + if (kbit_rate != prev_kbit_rate) { + prev_kbit_rate = kbit_rate; + fprintf(stderr, "%u kbit/s\n", kbit_rate); + } + gcc_unused ssize_t nbytes = write(1, data, datalen); return DecoderCommand::NONE; } -- cgit v1.2.3