[vlmc-devel] commit: VideoClipWorkflow: Don't keep the last rendered frame. ( Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Wed Mar 17 17:30:24 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Wed Mar 17 16:58:19 2010 +0100| [d6d55f5923e6515ae3925080696e18af8db74f0e] | committer: Hugo Beauzee-Luyssen 

VideoClipWorkflow: Don't keep the last rendered frame.

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

 src/Workflow/VideoClipWorkflow.cpp |    6 ------
 src/Workflow/VideoClipWorkflow.h   |    1 -
 2 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/Workflow/VideoClipWorkflow.cpp b/src/Workflow/VideoClipWorkflow.cpp
index 1fd5796..b7d54b8 100644
--- a/src/Workflow/VideoClipWorkflow.cpp
+++ b/src/Workflow/VideoClipWorkflow.cpp
@@ -31,7 +31,6 @@
 
 VideoClipWorkflow::VideoClipWorkflow( Clip *clip ) :
         ClipWorkflow( clip ),
-        m_lastRenderedFrame( NULL ),
         m_width( 0 ),
         m_height( 0 )
 {
@@ -115,11 +114,7 @@ VideoClipWorkflow::getOutput( ClipWorkflow::GetMode mode )
     QMutexLocker    lock2( m_computedBuffersMutex );
 
     if ( preGetOutput() == false )
-    {
-        if ( m_lastRenderedFrame != NULL )
-            return new StackedBuffer( m_lastRenderedFrame, NULL, false );
         return NULL;
-    }
     if ( isEndReached() == true )
         return NULL;
     ::StackedBuffer<LightVideoFrame*>* buff;
@@ -128,7 +123,6 @@ VideoClipWorkflow::getOutput( ClipWorkflow::GetMode mode )
     else if ( mode == ClipWorkflow::Get )
         buff = new StackedBuffer( m_computedBuffers.head(), NULL, false );
     postGetOutput();
-    m_lastRenderedFrame = buff->get();
     return buff;
 }
 
diff --git a/src/Workflow/VideoClipWorkflow.h b/src/Workflow/VideoClipWorkflow.h
index c70b1dc..9642e91 100644
--- a/src/Workflow/VideoClipWorkflow.h
+++ b/src/Workflow/VideoClipWorkflow.h
@@ -69,7 +69,6 @@ class   VideoClipWorkflow : public ClipWorkflow
     private:
         QQueue<LightVideoFrame*>    m_computedBuffers;
         QQueue<LightVideoFrame*>    m_availableBuffers;
-        LightVideoFrame             *m_lastRenderedFrame;
         static void                 lock( VideoClipWorkflow* clipWorkflow, void** pp_ret,
                                       int size );
         static void                 unlock( VideoClipWorkflow* clipWorkflow, void* buffer,



More information about the Vlmc-devel mailing list