From d94157e125a8d2c61216e5cb6abfabda68409dbf Mon Sep 17 00:00:00 2001 From: "Alex W. Jackson" Date: Tue, 28 May 2024 19:56:07 -0400 Subject: [PATCH] Fix Linux build --- src/drivers/Qt/AviRecord.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/Qt/AviRecord.cpp b/src/drivers/Qt/AviRecord.cpp index 9fd787d4..cf108666 100644 --- a/src/drivers/Qt/AviRecord.cpp +++ b/src/drivers/Qt/AviRecord.cpp @@ -80,11 +80,11 @@ extern "C" static gwavi_t *gwavi = NULL; static bool recordEnable = false; static bool recordAudio = true; -static std::atomic vbufHead = 0; -static std::atomic vbufTail = 0; +static std::atomic vbufHead(0); +static std::atomic vbufTail(0); static constexpr int vbufSize = 1024 * 1024 * 64; -static std::atomic abufHead = 0; -static std::atomic abufTail = 0; +static std::atomic abufHead(0); +static std::atomic abufTail(0); static constexpr int abufSize = 256 * 1024; static uint32_t *rawVideoBuf = NULL; static int16_t *rawAudioBuf = NULL;