Fix initialization order

This commit is contained in:
Johannes Pohl 2020-03-10 13:46:50 +01:00 committed by GitHub
parent 5f5b6b4638
commit 0e259d1ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,8 @@ static constexpr auto kCorrectionBegin = 100us;
Stream::Stream(const SampleFormat& in_format, const SampleFormat& out_format)
: in_format_(in_format), median_(0), shortMedian_(0), lastUpdate_(0), playedFrames_(0), bufferMs_(cs::msec(500)), soxr_(nullptr), frame_delta_(0),
hard_sync_(true), correctAfterXFrames_(0)
: in_format_(in_format), median_(0), shortMedian_(0), lastUpdate_(0), playedFrames_(0), correctAfterXFrames_(0), bufferMs_(cs::msec(500)), soxr_(nullptr),
frame_delta_(0), hard_sync_(true)
{
buffer_.setSize(500);
shortBuffer_.setSize(100);