Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix mixer silent after backwards seek

parent d5a078a1
Pipeline #9885 passed with stage
in 13 minutes and 35 seconds
......@@ -175,7 +175,7 @@ void Core::initGUI(const QUrl &Url)
connect(this, &Core::updateLibraryPath, m_library, &LibraryWidget::slotUpdateLibraryPath);
connect(m_capture.get(), &MediaCapture::recordStateChanged, m_mixerWidget, &MixerManager::recordStateChanged);
m_monitorManager = new MonitorManager(this);
connect(m_monitorManager, &MonitorManager::pauseTriggered, m_mixerWidget, &MixerManager::resetAudioValues);
connect(m_monitorManager, &MonitorManager::cleanMixer, m_mixerWidget, &MixerManager::resetAudioValues);
// Producer queue, creating MLT::Producers on request
/*
m_producerQueue = new ProducerQueue(m_binController);
......
......@@ -212,7 +212,7 @@ Monitor::Monitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *paren
m_toolbar->setToolTip(i18n("Insert Zone to Project Bin"));
m_toolbar->addSeparator();
} else if (id == Kdenlive::ProjectMonitor) {
connect(m_glMonitor, &GLWidget::paused, m_monitorManager, &MonitorManager::pauseTriggered);
connect(m_glMonitor, &GLWidget::paused, m_monitorManager, &MonitorManager::cleanMixer);
}
if (id != Kdenlive::DvdMonitor) {
......@@ -1109,6 +1109,7 @@ void Monitor::slotSeek(int pos)
{
slotActivateMonitor();
m_glMonitor->seek(pos);
m_monitorManager->cleanMixer();
}
void Monitor::checkOverlay(int pos)
......@@ -2052,6 +2053,7 @@ void Monitor::panView(QPoint diff)
void Monitor::requestSeek(int pos)
{
m_glMonitor->seek(pos);
m_monitorManager->cleanMixer();
}
void Monitor::setProducer(std::shared_ptr<Mlt::Producer> producer, int pos)
......
......@@ -148,7 +148,7 @@ signals:
/** @brief info is available for audio spectrum widget */
void frameDisplayed(const SharedFrame &);
/** @brief Triggered when the project monitor is paused (used to reset stored audiomixer data */
void pauseTriggered();
void cleanMixer();
};
#endif
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