[vlmc-devel] MainWorkflow: Use Qt::DirectConnection for frameChanged

Yikai Lu git at videolan.org
Tue Jun 6 18:19:12 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Jun  5 16:32:01 2017 +0900| [244bc93207bc2d06018d1a5906a3f756f0e1c2ab] | committer: Yikai Lu

MainWorkflow: Use Qt::DirectConnection for frameChanged

> https://code.videolan.org/videolan/vlmc/commit/244bc93207bc2d06018d1a5906a3f756f0e1c2ab
---

 src/Renderer/ConsoleRenderer.cpp | 2 +-
 src/Workflow/MainWorkflow.cpp    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Renderer/ConsoleRenderer.cpp b/src/Renderer/ConsoleRenderer.cpp
index ebbbf72c..5a2199e7 100644
--- a/src/Renderer/ConsoleRenderer.cpp
+++ b/src/Renderer/ConsoleRenderer.cpp
@@ -38,7 +38,7 @@ ConsoleRenderer::ConsoleRenderer(QObject *parent) :
 {
     m_outputFileName = qApp->arguments()[2];
     connect( Core::instance()->workflow(), &MainWorkflow::frameChanged,
-             this, &ConsoleRenderer::frameChanged);
+             this, &ConsoleRenderer::frameChanged, Qt::DirectConnection );
     connect( Core::instance()->workflow(), &MainWorkflow::mainWorkflowEndReached, qApp, &QCoreApplication::quit );
 }
 
diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index 5c5bf673..1b0018ea 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -73,7 +73,7 @@ MainWorkflow::MainWorkflow( Settings* projectSettings, int trackCount ) :
     connect( m_renderer->eventWatcher(), &RendererEventWatcher::positionChanged, this, [this]( qint64 pos )
     {
         emit frameChanged( pos, m_sequenceWorkflow->input()->playableLength(), Vlmc::Renderer );
-    } );
+    }, Qt::DirectConnection );
 
     m_settings->createVar( SettingValue::List, "tracks", QVariantList(), "", "", SettingValue::Nothing );
     connect( m_settings, &Settings::postLoad, this, &MainWorkflow::postLoad, Qt::DirectConnection );



More information about the Vlmc-devel mailing list