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

Fix muting audio master broken

parent 0822fa9a
......@@ -267,10 +267,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 {
......
......@@ -105,7 +105,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