Fix compilation

parent 5d6f44a2
......@@ -132,7 +132,7 @@ void MixerManager::cleanup()
}
m_mixers.clear();
if (m_masterMixer) {
m_masterMixer->clear(true);
m_masterMixer->reset();
}
}
......
......@@ -240,7 +240,7 @@ void MixerWidget::buildUI(Mlt::Tractor *service, const QString &trackTag)
}
} else {
emit muteTrack(m_tid, !active);
clear(true);
reset();
}
updateLabel();
});
......@@ -403,15 +403,21 @@ void MixerWidget::updateAudioLevel(int pos)
}
}
void MixerWidget::clear(bool reset)
void MixerWidget::reset()
{
QMutexLocker lk(&m_storeMutex);
m_levels.clear();
m_audioMeterWidget->setAudioValues({-100, -100});
}
void MixerWidget::clear()
{
if (reset) {
m_audioMeterWidget->setAudioValues({-100, -100});
}
QMutexLocker lk(&m_storeMutex);
m_levels.clear();
}
bool MixerWidget::isMute() const
{
return m_muteAction->isActive();
......
......@@ -55,7 +55,9 @@ public:
virtual ~MixerWidget();
void buildUI(Mlt::Tractor *service, const QString &trackTag);
/** @brief discard stored audio values and reset vu-meter to 0 if requested */
void clear(bool reset = false);
void reset();
/** @brief discard stored audio values */
void clear();
static void property_changed( mlt_service , MixerWidget *self, char *name );
void setMute(bool mute);
/** @brief Returs true if track is muted
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment