Commit d6d55f59 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

VideoClipWorkflow: Don't keep the last rendered frame.

parent 09a34dc0
......@@ -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;
}
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment