]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.cpp
Fix jittering issues when sending GL textures cross-thread.
[kdenlive] / src / renderer.cpp
index 19067517d83c19d6adc93d3f30b1aa62653e231a..880a9653b21d3171ae16d3946057bb17a3fae283 100644 (file)
@@ -22,7 +22,6 @@
  *                                                                         *
  ***************************************************************************/
 
-
 #include "renderer.h"
 #include "kdenlivesettings.h"
 #include "kthumb.h"
@@ -1954,8 +1953,7 @@ void Render::showFrame(Mlt::Frame* frame)
         const uint8_t* image = frame->get_image(format, width, height);
         const GLuint* texnum = (GLuint *)image;
         if (format == mlt_image_glsl_texture) {
-          emit showImageSignal(*texnum);
-          delete frame;
+          emit showImageSignal(frame, *texnum);
         } else {
           QImage qimage(width, height, QImage::Format_ARGB32_Premultiplied);
           memcpy(qimage.scanLine(0), image, width * height * 4);