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

Ensure dropped frames timer stops when playing stops

parent 96ecfe35
Pipeline #208792 passed with stage
in 7 minutes and 38 seconds
......@@ -1520,6 +1520,9 @@ void Monitor::switchPlay(bool play)
}
m_speedIndex = 0;
m_playAction->setActive(play);
if (!play) {
m_droppedTimer.stop();
}
if (!KdenliveSettings::autoscroll()) {
emit pCore->autoScrollChanged();
}
......@@ -1529,6 +1532,9 @@ void Monitor::switchPlay(bool play)
void Monitor::updatePlayAction(bool play)
{
m_playAction->setActive(play);
if (!play) {
m_droppedTimer.stop();
}
if (!KdenliveSettings::autoscroll()) {
emit pCore->autoScrollChanged();
}
......@@ -1571,7 +1577,11 @@ void Monitor::slotSwitchPlay()
}
if (showDropped) {
m_glMonitor->resetDrops();
m_droppedTimer.start();
if (play) {
m_droppedTimer.start();
} else {
m_droppedTimer.stop();
}
} else {
m_droppedTimer.stop();
}
......
Supports Markdown
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