Commit 949729bc authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix muting audio master broken

parent a9920a36
Pipeline #92954 passed with stage
in 9 minutes and 1 second
......@@ -251,10 +251,12 @@ void MixerWidget::buildUI(Mlt::Tractor *service, const QString &trackName)
// Muting master, special case
if (m_levelFilter) {
if (active) {
m_lastVolume = m_levelFilter->get_int("level");
m_lastVolume = m_levelFilter->get_double("level");
m_levelFilter->set("level", -1000);
m_levelFilter->set("disable", 0);
} else {
m_levelFilter->set("level", m_lastVolume);
m_levelFilter->set("disable", qFuzzyIsNull(m_lastVolume) ? 1 : 0);
}
}
} else {
......
......@@ -89,7 +89,7 @@ private:
QToolButton *m_collapse;
KSqueezedTextLabel *m_trackLabel;
QMutex m_storeMutex;
int m_lastVolume;
double m_lastVolume;
QVector <double>m_audioData;
Mlt::Event *m_listener;
bool m_recording;
......
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