Fix changing clip type at position 0 reporting error

parent 7b2e2d80
......@@ -391,7 +391,7 @@ bool Track::replace(qreal t, Mlt::Producer *prod, PlaylistState::ClipState state
cut = prod->cut(orig->get_in(), orig->get_out());
}
Clip(*cut).addEffects(*orig);
bool ok = m_playlist.insert_at(frame(t), cut, 1);
bool ok = m_playlist.insert_at(frame(t), cut, 1) >= 0;
delete cut;
m_playlist.unlock();
return ok;
......
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