]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.cpp
simplify the getImage methods in kthumb and use it in renderer (to fix random crash...
[kdenlive] / src / renderer.cpp
index c7b0c109c6ab437d6a3425656638e5b6b51d79b5..2ddad7c2d0eb1d681db47b07f059b15e5849dd52 100644 (file)
@@ -40,6 +40,7 @@ extern "C" {
 
 #include "renderer.h"
 #include "kdenlivesettings.h"
+#include "kthumb.h"
 
 static void consumer_frame_show(mlt_consumer, Render * self, mlt_frame frame_ptr) {
     // detect if the producer has finished playing. Is there a better way to do it ?
@@ -402,7 +403,7 @@ void Render::getFileProperties(const QDomElement &xml, int clipId) {
                 filePropertyMap["type"] = "video";
 
             // Generate thumbnail for this frame
-            QPixmap pixmap = frameThumbnail(frame, width, height, true);
+            QPixmap pixmap = KThumb::getImage(url, 0, width, height);
 
             emit replyGetImage(clipId, 0, pixmap, width, height);