Fix recent regression in clip duration

svn path=/trunk/kdenlive/; revision=5991
parent f436e1ef
......@@ -651,8 +651,8 @@ Mlt::Producer *DocClipBase::getCloneProducer()
adjustProducerProperties(prod, getId() + "_", false, false);
if (!m_properties.contains("proxy_out")) {
// Adjust length in case...
prod->set("length", m_properties.value("duration").toInt());
prod->set("out", m_properties.value("out").toInt());
if (m_properties.contains("duration")) prod->set("length", m_properties.value("duration").toInt());
if (m_properties.contains("out"))prod->set("out", m_properties.value("out").toInt());
}
}
return prod;
......
......@@ -1180,9 +1180,9 @@ int Render::setSceneList(QString playlist, int position)
kDebug() << "// NEW SCENE LIST DURATION SET TO: " << m_mltProducer->get_playtime();
m_mltConsumer->connect(*m_mltProducer);
m_mltProducer->set_speed(0);
emit durationChanged(m_mltProducer->get_playtime());
fillSlowMotionProducers();
blockSignals(false);
emit durationChanged(m_mltProducer->get_playtime());
return error;
//kDebug()<<"// SETSCN LST, POS: "<<position;
......
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