void KThumb::setProducer(Mlt::Producer *producer)
{
+ m_requestedThumbs.clear();
+ m_future.waitForFinished();
m_producer = producer;
// FIXME: the profile() call leaks an object, but trying to free
// it leads to a double-free in Profile::~Profile()
void KThumb::doGetThumbs()
{
const int theight = KdenliveSettings::trackheight();
- const int twidth = (int)(theight * m_dar + 0.5);
+ const int twidth = FRAME_SIZE;//(int)(theight * m_dar + 0.5);
while (!m_requestedThumbs.isEmpty()) {
int frame = m_requestedThumbs.takeFirst();