Commit 6a0feae9 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

minor optimisation

parent 7fc205ae
......@@ -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))
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);
Supports Markdown
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