]> git.sesse.net Git - kdenlive/blobdiff - src/kthumb.cpp
Fix rendering of documents that have a locale different than the system's locale
[kdenlive] / src / kthumb.cpp
index 29ac0f0670071f6bc18703a84b380b8db63c5691..8fa3d6aaf6de10ca18647af6fbc71a4eb74d4ba3 100644 (file)
@@ -97,8 +97,8 @@ void KThumb::updateThumbUrl(const QString &hash)
 void KThumb::updateClipUrl(KUrl url, const QString &hash)
 {
     m_url = url;
-    if (m_producer)
-        m_producer->set("resource", url.path().toUtf8().constData());
+    //if (m_producer)
+        //m_producer->set("resource", url.path().toUtf8().constData());
     m_thumbFile = m_clipManager->projectFolder() + "/thumbs/" + hash + ".thumb";
 }
 
@@ -174,9 +174,6 @@ QImage KThumb::getFrame(Mlt::Producer *producer, int framepos, int width, int he
         return p;
     }
 
-    /*Mlt::Producer parentProd(producer->parent());
-    Mlt::Service service(parentProd.get_service());
-    mlt_service_lock(service.get_service());*/
     int ow = width;
     int oh = height;
     mlt_image_format format = mlt_image_rgb24a;
@@ -462,7 +459,7 @@ void KThumb::slotGetIntraThumbs()
 {
     int theight = KdenliveSettings::trackheight();
     int twidth = FRAME_SIZE;
-    QString path = m_url.path() + "%";
+    QString path = m_url.path() + "_";
     QImage img;
 
     while (!m_intraFramesQueue.isEmpty()) {