diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx index 59f01cefc..ede267500 100644 --- a/src/output/plugins/JackOutputPlugin.cxx +++ b/src/output/plugins/JackOutputPlugin.cxx @@ -27,6 +27,8 @@ #include "util/Domain.hxx" #include "Log.hxx" +#include + #include #include @@ -70,13 +72,13 @@ struct JackOutput final : AudioOutput { jack_client_t *client; jack_ringbuffer_t *ringbuffer[MAX_PORTS]; - bool shutdown; + std::atomic_bool shutdown; /** * While this flag is set, the "process" callback generates * silence. */ - bool pause; + std::atomic_bool pause; explicit JackOutput(const ConfigBlock &block);