Commit 2883c62a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix clip monitor allowing seek past clip length with transparency background enabled

parent c2558c7a
......@@ -743,7 +743,9 @@ void Monitor::buildBackgroundedProducer(int pos) {
Mlt::Tractor trac(pCore->getCurrentProfile()->profile());
QString color = QString("color:%1").arg(KdenliveSettings::monitor_background());
std::shared_ptr<Mlt::Producer> bg(new Mlt::Producer(*trac.profile(), color.toUtf8().constData()));
bg->set("length", m_controller->originalProducer()->get_length());
int maxLength = m_controller->originalProducer()->get_length();
bg->set("length", maxLength);
bg->set("out", maxLength - 1);
trac.set_track(*bg.get(), 0);
trac.set_track(*m_controller->originalProducer().get(), 1);
QString composite = TransitionsRepository::get()->getCompositingTransition();
......
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