]> git.sesse.net Git - kdenlive/commitdiff
Don't add useless computing when preview is disabled on mlt capture
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 29 Oct 2011 19:01:53 +0000 (19:01 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 29 Oct 2011 19:01:53 +0000 (19:01 +0000)
svn path=/trunk/kdenlive/; revision=6001

src/mltdevicecapture.cpp

index a60f34afcf31cecc34dbf2174c2a697075ef43b5..c92b18c29dd67a3153c69bbf1aaf4556b1a217cd 100644 (file)
@@ -419,7 +419,7 @@ bool MltDeviceCapture::slotStartCapture(const QString &params, const QString &pa
     }
     
     // FIXME: the event object returned by the listen gets leaked...
-    m_mltConsumer->listen("consumer-frame-render", this, (mlt_listener) rec_consumer_frame_show);
+    if (m_livePreview < 2) m_mltConsumer->listen("consumer-frame-render", this, (mlt_listener) rec_consumer_frame_show);
     tmp = qstrdup(playlist.toUtf8().constData());
     if (xmlPlaylist) {
         // create an xml producer