[vlmc-devel] commit: Fixing a crash when rendering after canceling the first render. ( Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Sun Mar 21 22:23:01 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sun Mar 21 21:52:17 2010 +0100| [a2543cec6a600573e2ae41f417119c34f9012e13] | committer: Hugo Beauzee-Luyssen 

Fixing a crash when rendering after canceling the first render.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=a2543cec6a600573e2ae41f417119c34f9012e13
---

 src/Gui/MainWindow.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index f91dd12..a9ffff5 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -437,9 +437,6 @@ void    MainWindow::on_actionRender_triggered()
     else
     {
         m_renderer->killRenderer();
-        if ( m_fileRenderer )
-            delete m_fileRenderer;
-        m_fileRenderer = new WorkflowFileRenderer();
         //Setup dialog box for querying render parameters.
         RendererSettings    *settings = new RendererSettings;
         if ( settings->exec() == QDialog::Rejected )
@@ -455,6 +452,9 @@ void    MainWindow::on_actionRender_triggered()
         quint32     abitrate = settings->audioBitrate();
         delete settings;
 
+        if ( m_fileRenderer )
+            delete m_fileRenderer;
+        m_fileRenderer = new WorkflowFileRenderer();
         WorkflowFileRendererDialog  *dialog = new WorkflowFileRendererDialog( m_fileRenderer, width, height );
         dialog->setModal( true );
         dialog->setOutputFileName( outputFileName );



More information about the Vlmc-devel mailing list