- if (width % 2 == 1) width++;
- QPixmap p = QPixmap::fromImage(KThumb::getFrame(m_producer, pos, width, 100));
- if (!p.isNull()) clip_thumb->setPixmap(p);
- else kDebug() << "!!!!!!!!!!! ERROR CREATING THUMB";
-}
-
-void MarkerDialog::slotTimeUp()
-{
- int duration = m_tc.getDisplayFrameCount(marker_position->text(), m_frameDisplay);
- if (m_clip && duration >= m_clip->duration().frames(m_fps)) return;
- duration ++;
- marker_position->setText(m_tc.getDisplayTimecode(GenTime(duration, m_fps), m_frameDisplay));
+ int swidth = (int) (100.0 * m_profile->width() / m_profile->height() + 0.5);
+ if (width % 2 == 1)
+ width++;
+
+ m_image = KThumb::getFrame(m_producer, pos, swidth, width, 100);
+ const QPixmap p = QPixmap::fromImage(m_image);
+ if (!p.isNull())
+ clip_thumb->setPixmap(p);
+ else
+ kDebug() << "!!!!!!!!!!! ERROR CREATING THUMB";