Real fix for audio thumb in clip monitor

parent eecab9b9
......@@ -907,7 +907,7 @@ int GLWidget::setProducer(Mlt::Producer *producer, bool isActive, int position)
removeAudioOverlay();
}
} else if (KdenliveSettings::displayAudioOverlay()) {
createAudioOverlay(true);
createAudioOverlay(false);
}
if (position == -1 && m_producer->parent().get("kdenlive:id") == currentId) {
position = consumerPosition;
......
......@@ -1369,6 +1369,7 @@ void Monitor::slotOpenClip(std::shared_ptr<ProjectClip> controller, int in, int
}
m_glMonitor->setProducer(m_controller->originalProducer().get(), isActive(), in);
m_audioMeterWidget->audioChannels = controller->audioInfo() ? controller->audioInfo()->channels() : 0;
m_glMonitor->setAudioThumb(controller->audioChannels(), controller->audioFrameCache);
// hasEffects = controller->hasEffects();
} else {
m_glMonitor->setProducer(nullptr, isActive());
......
......@@ -115,8 +115,6 @@ void QmlManager::setScene(Kdenlive::MonitorId id, MonitorSceneType type, QSize p
if (duration > 0) {
root->setProperty("duration", duration);
}
// m_glMonitor->setAudioThumb();
}
void QmlManager::effectRectChanged()
......
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