Skip to content

Commit

Permalink
Remove obsolete guard agains division by zero
Browse files Browse the repository at this point in the history
This fixes mixxxdj#10764
  • Loading branch information
daschuer authored Sep 13, 2023
1 parent 434a8de commit 1ac537f
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 1ac537f

Please sign in to comment.