[vlmc-devel] Stop the project preview if a user starts file rendering

Yikai Lu git at videolan.org
Fri Apr 22 16:05:49 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Apr 18 17:57:48 2016 +0900| [3147364694ace2bae34b4cd12f20a928c2a9332f] | committer: Hugo Beauzée-Luyssen

Stop the project preview if a user starts file rendering

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

> https://code.videolan.org/videolan/vlmc/commit/3147364694ace2bae34b4cd12f20a928c2a9332f
---

 src/Gui/MainWindow.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 5dc6eb7..6ab17fa 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -610,6 +610,8 @@ MainWindow::renderVideo( const QString& outputFileName, quint32 width, quint32 h
     WorkflowFileRendererDialog  dialog( width, height );
     dialog.setModal( true );
     dialog.setOutputFileName( outputFileName );
+    if ( m_projectPreview->getGenericRenderer()->isRendering() == true )
+        m_projectPreview->stop();
     Core::instance()->workflowRenderer()->startRenderToFile( outputFileName, width, height,
                                                              fps, ar, vbitrate, abitrate );
 



More information about the Vlmc-devel mailing list