[vlmc-devel] ConsoleRenderer: Use MainWorkflow
Yikai Lu
git at videolan.org
Wed May 31 09:01:29 CEST 2017
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed May 31 15:09:42 2017 +0900| [aaf0ae0f7464417344d17ef7e71c9d04167504e2] | committer: Yikai Lu
ConsoleRenderer: Use MainWorkflow
> https://code.videolan.org/videolan/vlmc/commit/aaf0ae0f7464417344d17ef7e71c9d04167504e2
---
src/Renderer/ConsoleRenderer.cpp | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/Renderer/ConsoleRenderer.cpp b/src/Renderer/ConsoleRenderer.cpp
index 51720027..f6b88099 100644
--- a/src/Renderer/ConsoleRenderer.cpp
+++ b/src/Renderer/ConsoleRenderer.cpp
@@ -28,7 +28,7 @@
#include "Main/Core.h"
#include "Project/Project.h"
#include "Tools/VlmcDebug.h"
-#include "Renderer/WorkflowRenderer.h"
+#include "Workflow/MainWorkflow.h"
#include <QCoreApplication>
#include <QStringList>
@@ -39,7 +39,7 @@ ConsoleRenderer::ConsoleRenderer(QObject *parent) :
m_outputFileName = qApp->arguments()[2];
connect( Core::instance()->workflow(), &MainWorkflow::frameChanged,
this, &ConsoleRenderer::frameChanged);
- connect( Core::instance()->workflowRenderer(), SIGNAL( renderComplete() ), qApp, SLOT( quit() ) );
+ connect( Core::instance()->workflow(), &MainWorkflow::mainWorkflowEndReached, qApp, &QCoreApplication::quit );
}
void
@@ -60,14 +60,14 @@ void
ConsoleRenderer::startRender()
{
auto project = Core::instance()->project();
- Core::instance()->workflowRenderer()->startRenderToFile( m_outputFileName,
- project->width(),
- project->height(),
- project->fps(),
- project->aspectRatio(),
- project->videoBitrate(),
- project->audioBitrate(),
- project->nbChannels(),
- project->sampleRate()
- );
+ Core::instance()->workflow()->startRenderToFile( m_outputFileName,
+ project->width(),
+ project->height(),
+ project->fps(),
+ project->aspectRatio(),
+ project->videoBitrate(),
+ project->audioBitrate(),
+ project->nbChannels(),
+ project->sampleRate()
+ );
}
More information about the Vlmc-devel
mailing list