Skip to content

Commit

Permalink
Merge pull request #4153 from uklotzde/maincueposition
Browse files Browse the repository at this point in the history
Fix debug assertion for invalid main cue position
  • Loading branch information
Holzhaus authored Jul 28, 2021
2 parents eefc32f + c4d3e3e commit 1869621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/controls/cuecontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,10 @@ void CueControl::loadCuesFromTrack() {
// Note: This is mixxx::audio::kStartFramePos for new tracks
// and always a valid position.
mainCuePosition = m_pLoadedTrack->getMainCuePosition();
DEBUG_ASSERT(mainCuePosition.isValid());
// A main cue point only needs to be added if the position
// differs from the default position.
if (mainCuePosition != mixxx::audio::kStartFramePos) {
if (mainCuePosition.isValid() &&
mainCuePosition != mixxx::audio::kStartFramePos) {
qInfo()
<< "Adding missing main cue point at"
<< mainCuePosition
Expand Down

0 comments on commit 1869621

Please sign in to comment.