]> git.sesse.net Git - kdenlive/commitdiff
In clip monitor, go back to beginning when playing arrived at the end of clip:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 20 Jun 2009 00:59:37 +0000 (00:59 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 20 Jun 2009 00:59:37 +0000 (00:59 +0000)
http://kdenlive.org/mantis/view.php?id=889

svn path=/trunk/kdenlive/; revision=3600

src/monitor.cpp

index 5daa2c771807229ff38e3ea2aca6ad00ac90c284..bc3cd477fef30aeeda426a94079541251311f61d 100644 (file)
@@ -580,7 +580,13 @@ void Monitor::seekCursor(int pos)
 
 void Monitor::rendererStopped(int pos)
 {
-    //int rulerPos = (int)(pos * m_scale);
+    if (m_currentClip != NULL && m_playAction->isChecked()) {
+        // Clip monitor
+        if (pos >= m_length - 1) {
+            slotStart();
+            return;
+        }
+    }
     m_ruler->slotNewValue(pos);
     m_position = pos;
     checkOverlay();