]> git.sesse.net Git - kdenlive/blobdiff - src/kthumb.cpp
double click a clip in timeline to edit position & duration, several clip move/resize...
[kdenlive] / src / kthumb.cpp
index 88ab7b432d2bd460a3cbaf2671eb400fb33bcb40..accd897f5f61d858f3dda172e7da9260a250145a 100644 (file)
@@ -189,7 +189,6 @@ QPixmap KThumb::getImage(KUrl url, int frame, int width, int height) {
     Mlt::Producer producer(profile, "westley-xml", tmp);
     delete[] tmp;
 
-
     if (producer.is_blank()) {
 
         pix.fill(Qt::black);
@@ -221,9 +220,8 @@ QPixmap KThumb::getImage(QDomElement xml, int frame, int width, int height) {
 
 //static
 QPixmap KThumb::getFrame(Mlt::Producer producer, int framepos, int width, int height) {
-    if (framepos > 0)
-        producer.seek(framepos);
 
+    producer.seek(framepos);
     Mlt::Frame *frame = producer.get_frame();
     mlt_image_format format = mlt_image_yuv422;
     int frame_width = 0;
@@ -244,7 +242,6 @@ QPixmap KThumb::getFrame(Mlt::Producer producer, int framepos, int width, int he
 
     mlt_pool_release(new_image);
     delete frame;
-
     return pix;
 }
 /*
@@ -375,7 +372,7 @@ void KThumb::getAudioThumbs(int channel, double frame, double frameLength, int a
 void KThumb::customEvent(QEvent * event) {
     if (event->type() == 10005) {
         ProgressEvent* p = (ProgressEvent*) event;
-        m_clipManager->setThumbsProgress(m_url.path(), p->value());
+        m_clipManager->setThumbsProgress(i18n("Creating thumbnail for %1", m_url.fileName()), p->value());
     }
 }