Commit 6d01ee92 authored by Max Kellermann's avatar Max Kellermann

test/DumpDecoderClient: convert static local to class attribute

parent cc3c1f31
......@@ -96,7 +96,6 @@ DumpDecoderClient::SubmitData(gcc_unused InputStream *is,
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);
......
......@@ -32,6 +32,8 @@
class DumpDecoderClient final : public DecoderClient {
bool initialized = false;
uint16_t prev_kbit_rate = 0;
public:
Mutex mutex;
Cond cond;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment