From 25c11342f6317f8209c0e8fe88b6843ccf50af4f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 20 Jul 2023 15:37:10 +0200 Subject: [PATCH] playing is used from multiple threads, so it must be atomic. --- mainwindow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.h b/mainwindow.h index f7c8830..95dfae7 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -44,6 +44,6 @@ private: FormationsModel *offensive_formations; FormationsModel *defensive_formations; bool seeking = false; - bool playing = true; + std::atomic playing{true}; std::optional buffered_seek; }; -- 2.39.2