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 timeline play doesn't stop at project end

parent a94cf66f
......@@ -738,23 +738,26 @@ bool GLWidget::checkFrameNumber(int pos, int offset)
} else {
m_producer->set_speed(speed);
}
} else if (qFuzzyIsNull(speed)) {
if (m_isLoopMode) {
if (pos >= m_producer->get_int("out") - offset) {
return true;
}
int maxPos = m_producer->get_int("out") - offset;
if (qFuzzyIsNull(speed)) {
if (pos >= maxPos) {
if (m_isLoopMode) {
m_consumer->purge();
m_producer->seek(m_proxy->zoneIn());
m_producer->set_speed(1.0);
m_consumer->set("refresh", 1);
return true;
}
return true;
} else {
if (pos >= m_producer->get_int("out") - offset) {
return false;
}
return true;
return false;
}
} else if (speed < 0. && pos <= 0) {
return true;
} else if (pos >= (maxPos - 1) || (speed < 0. && pos <= 0)) {
m_producer->set_speed(0);
m_consumer->set("refresh", 0);
m_consumer->purge();
m_producer->seek(qMax(0, maxPos));
return false;
}
return true;
......
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