diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/FakeDecoderAPI.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |