diff options
Diffstat (limited to 'src/track/track.cpp')
-rw-r--r-- | src/track/track.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/track/track.cpp b/src/track/track.cpp index f7ba1a41fc..a02810343b 100644 --- a/src/track/track.cpp +++ b/src/track/track.cpp @@ -1100,8 +1100,10 @@ bool Track::importPendingCueInfosWhileLocked() { const auto trackId = m_record.getId(); QList<CuePointer> cuePoints; cuePoints.reserve(m_pCueInfoImporterPending->size()); - for (const auto& cueInfo : m_pCueInfoImporterPending->importCueInfosAndApplyTimingOffset( - getLocation(), m_streamInfo->getSignalInfo())) { + const auto cueInfos = + m_pCueInfoImporterPending->importCueInfosAndApplyTimingOffset( + getLocation(), m_streamInfo->getSignalInfo()); + for (const auto& cueInfo : cueInfos) { CuePointer pCue(new Cue(cueInfo, sampleRate, true)); // While this method could be called from any thread, // associated Cue objects should always live on the |