[vlmc-devel] VideoClipWorkflow: Account for potential errors while synchronously waiting for a frame

Hugo Beauzée-Luyssen git at videolan.org
Sun Jan 26 22:48:58 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Jan 26 23:47:28 2014 +0200| [2bfc4090ce2a5fcf2fd31392f5e7ce74166651ce] | committer: Hugo Beauzée-Luyssen

VideoClipWorkflow: Account for potential errors while synchronously waiting for a frame

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

 src/Workflow/VideoClipWorkflow.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Workflow/VideoClipWorkflow.cpp b/src/Workflow/VideoClipWorkflow.cpp
index ad38cf7..1cae3c1 100644
--- a/src/Workflow/VideoClipWorkflow.cpp
+++ b/src/Workflow/VideoClipWorkflow.cpp
@@ -134,7 +134,7 @@ VideoClipWorkflow::getOutput( ClipWorkflow::GetMode mode, qint64 currentFrame )
     if ( getNbComputedBuffers() == 0 )
     {
         m_renderWaitCond->wait( m_renderLock );
-        if ( m_state == Stopped )
+        if ( shouldRender() == false )
             return NULL;
     }
     Workflow::Frame         *buff = NULL;



More information about the Vlmc-devel mailing list