Fix crash on add/delete track when frei0r cairoblend transition is not available

BUG: 357155
parent f6f43f7f
......@@ -3153,10 +3153,12 @@ QList <TransitionInfo> Render::mltInsertTrack(int ix, const QString &name, bool
if (videoTrack) {
Mlt::Transition composite(*m_qmlView->profile(), KdenliveSettings::gpu_accel() ? "movit.overlay" : "frei0r.cairoblend");
composite.set("a_track", ix - 1);
composite.set("b_track", ix);
composite.set("internal_added", 237);
field->plant_transition(composite, ix - 1, ix);
if (composite.is_valid()) {
composite.set("a_track", ix - 1);
composite.set("b_track", ix);
composite.set("internal_added", 237);
field->plant_transition(composite, ix - 1, ix);
}
//mltPlantTransition(field, composite, ct-1, ct);
}
......
......@@ -3212,6 +3212,10 @@ void CustomTrackView::checkCompositeTransitions(Mlt::Tractor *tractor)
if (!tr || brokenTransition) {
// Create transition
Mlt::Transition composite(*tractor->profile(), KdenliveSettings::gpu_accel() ? "movit.overlay" : "frei0r.cairoblend");
if (!composite.is_valid()) {
// missing frei0r transition
break;
}
composite.set("a_track", i - 1);
composite.set("b_track", i);
composite.set("internal_added", 237);
......
Markdown is supported
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