summaryrefslogtreecommitdiffstats
path: root/src/engine/sync/enginesync.cpp
diff options
context:
space:
mode:
authorOwen Williams <owilliams@mixxx.org>2020-03-21 14:07:04 -0400
committerOwen Williams <owilliams@mixxx.org>2020-03-21 14:07:04 -0400
commit6839c263ff98994817c83ab6894d7cb71db3c5cd (patch)
treec59a7741387b348e0bd273d2f68d5805bf5f0412 /src/engine/sync/enginesync.cpp
parent6927aaa6f3f8fa36e564fe9b6d8b68117d9eee56 (diff)
master sync: make vectors static
Diffstat (limited to 'src/engine/sync/enginesync.cpp')
-rw-r--r--src/engine/sync/enginesync.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/sync/enginesync.cpp b/src/engine/sync/enginesync.cpp
index b0997c5e14..e4da2b1321 100644
--- a/src/engine/sync/enginesync.cpp
+++ b/src/engine/sync/enginesync.cpp
@@ -44,11 +44,12 @@ Syncable* EngineSync::pickMaster(Syncable* enabling_syncable) {
return m_pMasterSyncable;
}
- std::vector<Syncable*> stopped_sync_decks;
- std::vector<Syncable*> playing_sync_decks;
-
+ static std::vector<Syncable*> stopped_sync_decks;
+ static std::vector<Syncable*> playing_sync_decks;
stopped_sync_decks.reserve(kMaxNumberOfDecks);
playing_sync_decks.reserve(kMaxNumberOfDecks);
+ stopped_sync_decks.clear();
+ playing_sync_decks.clear();
if (enabling_syncable != nullptr && enabling_syncable->getBaseBpm() != 0.0) {
if (enabling_syncable->isPlaying()) {