diff --git a/src/output/Timer.cxx b/src/output/Timer.cxx index cf7532c9c..a7fe1fe34 100644 --- a/src/output/Timer.cxx +++ b/src/output/Timer.cxx @@ -27,8 +27,7 @@ #include Timer::Timer(const AudioFormat af) - :started(false), - rate(af.sample_rate * af.GetFrameSize()) + :rate(af.sample_rate * af.GetFrameSize()) { } diff --git a/src/output/Timer.hxx b/src/output/Timer.hxx index 39f2f2aa0..ce3d6c9c3 100644 --- a/src/output/Timer.hxx +++ b/src/output/Timer.hxx @@ -26,7 +26,7 @@ struct AudioFormat; class Timer { uint64_t time; - bool started; + bool started = false; const int rate; public: explicit Timer(AudioFormat af);