aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2016-07-20 13:17:09 +0200
committerJean-Baptiste Mardelle <[email protected]>2016-07-20 13:17:09 +0200
commit6a0feae930d89a3ef4a1b5ff09e15818fb64fd53 (patch)
tree5e0abf4ce1094921c584a8b4d295992ab68b5813
parent7fc205aef2becccbd866b9d91926e725cf95e83c (diff)
minor optimisation
-rw-r--r--src/timeline/transitionhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/transitionhandler.cpp b/src/timeline/transitionhandler.cpp
index b446dc7..dca0674 100644
--- a/src/timeline/transitionhandler.cpp
+++ b/src/timeline/transitionhandler.cpp
@@ -578,10 +578,11 @@ void TransitionHandler::rebuildComposites(int lowestVideoTrack, QMap<int, bool>
}
// Re-add correct audio transitions
int transitionTrack = lowestVideoTrack;
+ QString composite = compositeTransition();
for (int i = lowestVideoTrack + 1; i < m_tractor->count(); i++) {
if (!compositeState.contains(i))
continue;
- Mlt::Transition transition(*m_tractor->profile(), compositeTransition().toUtf8().constData());
+ Mlt::Transition transition(*m_tractor->profile(), composite.toUtf8().constData());
transition.set("always_active", 1);
transition.set("a_track", transitionTrack);
transition.set("b_track", i);