Skip to content
Snippets Groups Projects
Commit 25f3b37b authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

WorkflowRenderer: Don't start the renderer if it is already rendering


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 44e5fff1
No related branches found
No related tags found
No related merge requests found
......@@ -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 ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment