diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2020-12-30 00:47:01 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2020-12-31 13:58:25 +0100 |
commit | 1add09b52fc89d9d64cb60ca57aeeb822d3ad541 (patch) | |
tree | 921abbacdb97a5d06b203e01ef0f50fda6a478d2 /src/mixer/playerinfo.h | |
parent | e90271c6bad0bea21b84b555144eea402807b98e (diff) |
Fix current track display/broadcasting/recording when starting auto-DJ
Diffstat (limited to 'src/mixer/playerinfo.h')
-rw-r--r-- | src/mixer/playerinfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mixer/playerinfo.h b/src/mixer/playerinfo.h index 2b06412cb0..7fc1035fcc 100644 --- a/src/mixer/playerinfo.h +++ b/src/mixer/playerinfo.h @@ -1,6 +1,7 @@ // Helper class to have easy access #pragma once +#include <QAtomicInt> #include <QMap> #include <QMutex> #include <QObject> @@ -57,7 +58,7 @@ class PlayerInfo : public QObject { ControlProxy* m_pCOxfader; // QMap is faster than QHash for small count of elements < 50 QMap<QString, TrackPointer> m_loadedTrackMap; - int m_currentlyPlayingDeck; + QAtomicInt m_currentlyPlayingDeck; QList<DeckControls*> m_deckControlList; static PlayerInfo* m_pPlayerinfo; |