[vlmc-devel] Configure FileTarget for WorkflowRenderer

Yikai Lu git at videolan.org
Fri Apr 22 16:05:48 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Apr 18 17:32:27 2016 +0900| [79ccdf17c42118e51c56b6d6f5e840eecb13ca6c] | committer: Hugo Beauzée-Luyssen

Configure FileTarget for WorkflowRenderer

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/79ccdf17c42118e51c56b6d6f5e840eecb13ca6c
---

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

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 5997c16..f467d2c 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,7 @@ 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 );



More information about the Vlmc-devel mailing list