Audio/MidiJack: Fix invalid read: (2) of #5408
This patch * makes `m_stopped` atomic * initializes `m_stopped` correctly to `true` * moves the initialization of `m_stopped` to the point where jack ports are already connected
This commit is contained in:
committed by
Johannes Lorenz
parent
c6d60e982e
commit
9e9c5acc17
@@ -34,6 +34,7 @@
|
||||
#include "AudioWeakJack.h"
|
||||
#endif
|
||||
|
||||
#include <atomic>
|
||||
#include <QtCore/QVector>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
@@ -106,7 +107,7 @@ private:
|
||||
jack_client_t * m_client;
|
||||
|
||||
bool m_active;
|
||||
bool m_stopped;
|
||||
std::atomic<bool> m_stopped;
|
||||
|
||||
MidiJack *m_midiClient;
|
||||
QVector<jack_port_t *> m_outputPorts;
|
||||
|
||||
Reference in New Issue
Block a user