aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-11 11:43:52 +0100
committerMax Kellermann <max@duempel.org>2014-11-11 11:43:52 +0100
commitc3f6502be277ea7a9eb42babc4dc44ab2abf59e2 (patch)
tree1282ad28125722133058fb21846877454f139bc2 /test
parent0120f396acadc56ef907e64a2ec40060e4ee5678 (diff)
parente5217e6ce97d4a0f972223f5eb6308e9b5e8df8f (diff)
downloadmpd-c3f6502be277ea7a9eb42babc4dc44ab2abf59e2.tar.gz
mpd-c3f6502be277ea7a9eb42babc4dc44ab2abf59e2.tar.xz
mpd-c3f6502be277ea7a9eb42babc4dc44ab2abf59e2.zip
Merge tag 'v0.19.3'
Diffstat (limited to 'test')
-rw-r--r--test/FakeDecoderAPI.cxx6
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;
}