[vlmc-devel] [PATCH 2/2] WorkflowRenderer: Don't start the renderer if it is already rendering

Yikai Lu luyikei.qmltu at gmail.com
Sun Apr 10 12:21:22 CEST 2016


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

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 2586e2d..ea5a450 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -228,6 +228,8 @@ WorkflowRenderer::startRenderToFile( const QString& outputFileName, quint32 widt
                                      double fps, const QString& ar,
                                      quint32 vbitrate, quint32 abitrate )
 {
+    if ( m_isRendering == true )
+        return ;
     m_width = width;
     m_height = height;
     m_outputFps = fps;
@@ -247,6 +249,8 @@ WorkflowRenderer::startRenderToFile( const QString& outputFileName, quint32 widt
 void
 WorkflowRenderer::startPreview()
 {
+    if ( m_isRendering == true )
+        return ;
     if ( m_mainWorkflow->getLengthFrame() <= 0 )
         return ;
 
-- 
1.9.1



More information about the Vlmc-devel mailing list