[vlmc-devel] ClipWorkflow: Don't stop an inexistant renderer

Hugo Beauzée-Luyssen git at videolan.org
Thu Mar 24 13:22:32 CET 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 21 23:58:33 2016 +0100| [80a4a37b6fe0685f2dcdf150dcb69713fc154b7a] | committer: Hugo Beauzée-Luyssen

ClipWorkflow: Don't stop an inexistant renderer

> https://code.videolan.org/videolan/vlmc/commit/80a4a37b6fe0685f2dcdf150dcb69713fc154b7a
---

 src/Workflow/ClipWorkflow.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Workflow/ClipWorkflow.cpp b/src/Workflow/ClipWorkflow.cpp
index cc2feae..db01453 100644
--- a/src/Workflow/ClipWorkflow.cpp
+++ b/src/Workflow/ClipWorkflow.cpp
@@ -125,7 +125,8 @@ ClipWorkflow::clipEndReached()
 void
 ClipWorkflow::stop()
 {
-    m_renderer->stop();
+    if ( m_renderer != nullptr )
+        m_renderer->stop();
 }
 
 void



More information about the Vlmc-devel mailing list