[vlmc-devel] WorkflowRenderer: Fix crash when closing if no rendering happened

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 24 18:24:02 CET 2014


vlmc | branch: ibackend | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 19:03:55 2014 +0200| [e8802bdd725267ef5443fad6c59f10755980d352] | committer: Hugo Beauzée-Luyssen

WorkflowRenderer: Fix crash when closing if no rendering happened

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

 src/Renderer/WorkflowRenderer.cpp |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 32d6d71..0d8c670 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -278,11 +278,13 @@ WorkflowRenderer::internalPlayPause( bool forcePause )
 void
 WorkflowRenderer::stop()
 {
+
     m_isRendering = false;
     m_paused = false;
     m_stopping = true;
     m_mainWorkflow->stopFrameComputing();
-    m_sourceRenderer->stop();
+    if ( m_sourceRenderer != NULL )
+        m_sourceRenderer->stop();
     m_mainWorkflow->stop();
     delete[] m_silencedAudioBuffer;
     m_silencedAudioBuffer = NULL;



More information about the Vlmc-devel mailing list