From ebf3022e8b804b2e6fc1e92e995ac42d3c20f29a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sat, 29 Oct 2011 19:01:53 +0000 Subject: [PATCH] Don't add useless computing when preview is disabled on mlt capture svn path=/trunk/kdenlive/; revision=6001 --- src/mltdevicecapture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mltdevicecapture.cpp b/src/mltdevicecapture.cpp index a60f34af..c92b18c2 100644 --- a/src/mltdevicecapture.cpp +++ b/src/mltdevicecapture.cpp @@ -419,7 +419,7 @@ bool MltDeviceCapture::slotStartCapture(const QString ¶ms, 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 -- 2.39.2