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

Hugo Beauzée-Luyssen hugo at beauzee.fr
Sun Apr 10 14:13:54 CEST 2016


On 04/10/2016 12:21 PM, Yikai Lu wrote:
> ---
>  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 ;
>  
> 
Applied, thanks!

-- 
Hugo Beauzée-Luyssen
www.beauzee.fr


More information about the Vlmc-devel mailing list