[vlmc-devel] [PATCH 7/7] WorkflowRenderer: Configure a temporary FileTarget

Yikai Lu luyikei.qmltu at gmail.com
Sun Apr 17 11:02:27 CEST 2016


---
 src/Renderer/WorkflowRenderer.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 5997c16..191372f 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -35,6 +35,7 @@
 #include "GenericRenderer.h"
 #include "Backend/IBackend.h"
 #include "Backend/ISource.h"
+#include "Backend/Target/FileTarget.h"
 #include "Workflow/MainWorkflow.h"
 #include "Gui/preview/RenderWidget.h"
 #include "Settings/Settings.h"
@@ -228,7 +229,9 @@ WorkflowRenderer::startRenderToFile( const QString& outputFileName, quint32 widt
     m_aspectRatio = ar;
 
     setupRenderer();
-    m_sourceRenderer->setOutputFile( qPrintable( outputFileName ) );
+
+    setRenderTarget( std::unique_ptr<Backend::IRenderTarget>( new Backend::FileTarget( qPrintable( outputFileName ) ) ) );
+
     m_sourceRenderer->setOutputAudioBitrate( abitrate );
     m_sourceRenderer->setOutputVideoBitrate( vbitrate );
     connect( m_mainWorkflow, &MainWorkflow::mainWorkflowEndReached, this, &WorkflowRenderer::renderComplete );
-- 
1.9.1



More information about the Vlmc-devel mailing list