Don't seek to start when playing a clip until the end. Instead, seek to start...

Don't seek to start when playing a clip until the end. Instead, seek to start when user presses play and the clip is at the last frame

svn path=/trunk/kdenlive/; revision=4288
parent 559a0e6d
...@@ -639,13 +639,6 @@ void Monitor::seekCursor(int pos) ...@@ -639,13 +639,6 @@ void Monitor::seekCursor(int pos)
void Monitor::rendererStopped(int pos) void Monitor::rendererStopped(int pos)
{ {
if (m_currentClip != NULL && m_playAction->isChecked()) {
// Clip monitor
if (m_isActive && pos >= m_length - 1) {
slotStart();
return;
}
}
if (m_ruler->slotNewValue(pos)) { if (m_ruler->slotNewValue(pos)) {
checkOverlay(); checkOverlay();
if (m_frametimecode) m_timePos->setText(QString::number(pos)); if (m_frametimecode) m_timePos->setText(QString::number(pos));
......
...@@ -1277,6 +1277,7 @@ void Render::switchPlay() ...@@ -1277,6 +1277,7 @@ void Render::switchPlay()
if (m_isZoneMode) resetZoneMode(); if (m_isZoneMode) resetZoneMode();
if (m_mltProducer->get_speed() == 0.0) { if (m_mltProducer->get_speed() == 0.0) {
m_isBlocked = false; m_isBlocked = false;
if (m_name == "clip" && m_framePosition == (int) m_mltProducer->get_out()) m_mltProducer->seek(0);
m_mltProducer->set_speed(1.0); m_mltProducer->set_speed(1.0);
m_mltConsumer->set("refresh", 1); m_mltConsumer->set("refresh", 1);
} else { } else {
......
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