]> git.sesse.net Git - kdenlive/commitdiff
Don't double check max length when resizing clip end
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 28 May 2009 21:36:04 +0000 (21:36 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 28 May 2009 21:36:04 +0000 (21:36 +0000)
svn path=/trunk/kdenlive/; revision=3438

src/abstractclipitem.cpp
src/clipitem.cpp

index 370a781bf7c580347413e94885d3574b31e5c2b6..07e6a54a6f617fc176e42c1892efe09d00511848 100644 (file)
@@ -148,9 +148,6 @@ void AbstractClipItem::resizeEnd(int posx, double speed, bool /*updateKeyFrames*
     //kDebug() << "// DUR DIFF1:" << durationDiff.frames(25) << ", ADJUSTED: " << durationDiff.frames(25) * speed << ", SPED:" << speed;
     if (cropDuration() + durationDiff <= GenTime()) {
         durationDiff = GenTime() - (cropDuration() - GenTime(3, m_fps));
-    } else if (type() == AVWIDGET && (cropStart() + cropDuration() + durationDiff >= maxDuration())) {
-        //kDebug() << "// MAX OVERLOAD:" << cropDuration().frames(25) << " + " << durationDiff.frames(25) << ", MAX:" << maxDuration().frames(25);
-        durationDiff = maxDuration() - cropDuration() - cropStart();
     }
     //kDebug() << "// DUR DIFF2:" << durationDiff.frames(25) << ", ADJUSTED: " << durationDiff.frames(25) * speed << ", SPED:" << speed;
     m_cropDuration += durationDiff * speed;
index db222a1df2077fcb6548a5a222320f7209bcf9e4..4f93bef4df350ab6d516d3c57aee295632676641 100644 (file)
@@ -1105,7 +1105,7 @@ void ClipItem::resizeStart(int posx, double /*speed*/)
 
 void ClipItem::resizeEnd(int posx, double /*speed*/, bool updateKeyFrames)
 {
-    const int max = (startPos() - cropStart() + maxDuration()).frames(m_fps) + 1;
+    const int max = (startPos() - cropStart() + maxDuration()).frames(m_fps);
     if (posx > max) posx = max;
     if (posx == endPos().frames(m_fps)) return;
     //kDebug() << "// NEW POS: " << posx << ", OLD END: " << endPos().frames(m_fps);