Commit 5f65e06b authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix change speed for slideshow clips

CCBUG: 429795
CCBUG: 428263
CCBUG: 392670
parent 03294277
......@@ -832,6 +832,13 @@ std::shared_ptr<Mlt::Producer> ProjectClip::getTimelineProducer(int trackId, int
warpProducer->set("audio_index", audioStream);
}
//if the producer has a "time-to-live" (frame duration) we need to scale it according to the speed
int ttl = originalProducer()->get_int("ttl");
if(ttl > 0) {
int new_ttl = ttl / std::abs(speed) + 0.5;
warpProducer->set("ttl", std::max(new_ttl, 1));
}
qDebug() << "warp LENGTH" << warpProducer->get_length();
warpProducer->set("set.test_audio", 1);
warpProducer->set("set.test_image", 1);
......
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