[vlmc-devel] commit: WorkflowRenderer: corrected obvious crash. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Fri May 14 18:51:22 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Wed May 12 17:53:08 2010 +0200| [a5eb731877cdfa36bdecc8873a171da9ea446469] | committer: Hugo Beauzée-Luyssen 

WorkflowRenderer: corrected obvious crash.

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

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

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index c7abf8e..97f5d08 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -150,7 +150,9 @@ WorkflowRenderer::lockVideo( EsHandler *handler, qint64 *pts, size_t *bufferSize
     qint64                          ptsDiff = 0;
     MainWorkflow::OutputBuffers*    ret;
 
-    if ( m_stopping == false )
+    if ( m_stopping == true )
+        return 1;
+    else
     {
         ret = m_mainWorkflow->getOutput( MainWorkflow::VideoTrack, m_paused );
         m_videoBuffSize = (*(ret->video))->nboctets;



More information about the Vlmc-devel mailing list