Fix broken keyframes on image/title clips

BUG: 364318
parent 185e7551
......@@ -184,6 +184,15 @@ void ClipController::getInfoForProducer()
if (m_audioIndex > -1 || m_clipType == Playlist) {
m_audioInfo = new AudioStreamInfo(m_masterProducer, m_audioIndex);
}
if (!m_hasLimitedDuration) {
int playtime = m_masterProducer->get_int("kdenlive:duration");
if (playtime <= 0) {
// Fix clips having missing kdenlive:duration
m_masterProducer->set("kdenlive:duration", m_masterProducer->get_playtime());
m_masterProducer->set("out", m_masterProducer->get_length() - 1);
}
}
}
bool ClipController::hasLimitedDuration() const
......
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