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

Yikai Lu luyikei.qmltu at gmail.com
Sat Apr 16 08:22:07 CEST 2016


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

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 7056555..77d524f 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"
@@ -227,7 +228,10 @@ WorkflowRenderer::startRenderToFile( const QString& outputFileName, quint32 widt
     m_aspectRatio = ar;
 
     setupRenderer();
-    m_sourceRenderer->setOutputFile( qPrintable( outputFileName ) );
+
+    Backend::FileTarget fileTarget( qPrintable( outputFileName ) );
+    fileTarget.configure( m_sourceRenderer );
+
     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