Commit 0d5fe4a4 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Close vlmc once render is finished in CLI mode.

parent 8db6dda9
...@@ -461,7 +461,8 @@ void MainWindow::on_actionRender_triggered() ...@@ -461,7 +461,8 @@ void MainWindow::on_actionRender_triggered()
m_fileRenderer->initializeRenderer(); m_fileRenderer->initializeRenderer();
m_fileRenderer->run( outputFileName, width, height, fps, vbitrate, abitrate ); m_fileRenderer->run( outputFileName, width, height, fps, vbitrate, abitrate );
dialog->show(); dialog->exec();
delete dialog;
} }
} }
......
...@@ -41,6 +41,7 @@ ConsoleRenderer::ConsoleRenderer(QObject *parent) : ...@@ -41,6 +41,7 @@ ConsoleRenderer::ConsoleRenderer(QObject *parent) :
m_abitrate = 256; m_abitrate = 256;
connect( m_renderer, SIGNAL( frameChanged( qint64 ) ), connect( m_renderer, SIGNAL( frameChanged( qint64 ) ),
this, SLOT( frameChanged( qint64 ) ) ); this, SLOT( frameChanged( qint64 ) ) );
connect( m_renderer, SIGNAL( renderComplete() ), qApp, SLOT( quit() ) );
} }
void void
......
...@@ -86,6 +86,7 @@ void ...@@ -86,6 +86,7 @@ void
WorkflowFileRenderer::__endReached() WorkflowFileRenderer::__endReached()
{ {
stop(); stop();
emit renderComplete();
disconnect(); disconnect();
} }
......
...@@ -70,6 +70,7 @@ private slots: ...@@ -70,6 +70,7 @@ private slots:
signals: signals:
void imageUpdated( const uchar* image ); void imageUpdated( const uchar* image );
void frameChanged( qint64 ); void frameChanged( qint64 );
void renderComplete();
}; };
#endif // WORKFLOWFILERENDERER_H #endif // WORKFLOWFILERENDERER_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment