Skip to content

Commit

Permalink
Merge pull request #11977 from daschuer/gh10764
Browse files Browse the repository at this point in the history
Remove obsolete guard agains division by zero
  • Loading branch information
Swiftb0y authored Sep 13, 2023
2 parents 434a8de + 1ac537f commit 1c3e8a4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/engine/enginebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,6 @@ mixxx::audio::FramePos EngineBuffer::queuedSeekPosition() const {
void EngineBuffer::updateIndicators(double speed, int iBufferSize) {
if (!m_playPos.isValid() ||
!m_trackSampleRateOld.isValid() ||
m_tempo_ratio_old == 0 ||
m_pPassthroughEnabled->toBool()) {
// Skip indicator updates with invalid values to prevent undefined behavior,
// e.g. in WaveformRenderBeat::draw().
Expand Down

0 comments on commit 1c3e8a4

Please sign in to comment.