]> git.sesse.net Git - kdenlive/commitdiff
Fix corruption of slowmotion clips when adding a track to project
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 8 Dec 2009 16:02:49 +0000 (16:02 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 8 Dec 2009 16:02:49 +0000 (16:02 +0000)
svn path=/trunk/kdenlive/; revision=4176

src/customtrackview.cpp

index d93429ce82c4054d89a266800bd10bb68e3a40fe..c1d4b07415f731c502ab481006e6e8b8f6b3caa6 100644 (file)
@@ -2305,6 +2305,8 @@ void CustomTrackView::addTrack(TrackInfo type, int ix)
             ItemInfo clipinfo = item->info();
             if (item->type() == AVWIDGET) {
                 ClipItem *clip = static_cast <ClipItem *>(item);
+               // slowmotion clips are not track dependant, so no need to update them
+               if (clip->speed() != 1.0) continue;
                 // We add a move clip command so that we get the correct producer for new track number
                 if (clip->clipType() == AV || clip->clipType() == AUDIO) {
                     Mlt::Producer *prod;