[vlmc-devel] WorkflowRenderer: Fix reading a null renderTarget.

Yikai Lu git at videolan.org
Mon May 2 13:13:49 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun May  1 21:54:48 2016 +0900| [6121d5111df9c21bebea9b0a87443f5991a66887] | committer: Hugo Beauzée-Luyssen

WorkflowRenderer: Fix reading a null renderTarget.

Sorry, it'a very stupid mistake.

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

> https://code.videolan.org/videolan/vlmc/commit/6121d5111df9c21bebea9b0a87443f5991a66887
---

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

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 23556bd..27e3516 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -228,8 +228,8 @@ WorkflowRenderer::startRenderToFile( const QString& outputFileName, quint32 widt
     m_outputFps = fps;
     m_aspectRatio = ar;
 
-    setupRenderer();
     setRenderTarget( std::unique_ptr<Backend::IRenderTarget>( new Backend::FileTarget( qPrintable( outputFileName ) ) ) );
+    setupRenderer();
     m_sourceRenderer->setOutputAudioBitrate( abitrate );
     m_sourceRenderer->setOutputVideoBitrate( vbitrate );
     connect( m_mainWorkflow, &MainWorkflow::mainWorkflowEndReached, this, &WorkflowRenderer::renderComplete );



More information about the Vlmc-devel mailing list