Fix wrong thumbnails sometimes displayed

parent 34bed63e
Pipeline #3099 passed with stage
in 20 minutes and 7 seconds
......@@ -518,6 +518,8 @@ std::shared_ptr<Mlt::Producer> ProjectClip::thumbProducer()
Mlt::Filter padder(*pCore->thumbProfile(), "resize");
Mlt::Filter converter(*pCore->thumbProfile(), "avcolor_space");
m_thumbsProducer->set("audio_index", -1);
// Required to make get_playtime() return > 1
m_thumbsProducer->set("out", m_thumbsProducer->get_length() -1);
m_thumbsProducer->attach(scaler);
m_thumbsProducer->attach(padder);
m_thumbsProducer->attach(converter);
......
......@@ -52,8 +52,6 @@ ThumbJob::ThumbJob(const QString &binId, int imageHeight, int frameNumber, bool
m_binClip = pCore->projectItemModel()->getClipByBinID(binId);
} else if (item->itemType() == AbstractProjectItem::SubClipItem) {
m_subClip = true;
m_binClip = pCore->projectItemModel()->getClipByBinID(item->parent()->clipId());
m_frameNumber = std::max(m_frameNumber, std::static_pointer_cast<ProjectSubClip>(item)->zone().x());
}
}
......
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