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

VideoClipWorkflow: Race condition work around.

This is temporary, this race condition has to be fixed, not worked
arround, you're hiding a bug ! (©)
parent 4aca93d1
......@@ -126,6 +126,10 @@ VideoClipWorkflow::getOutput( ClipWorkflow::GetMode mode )
m_renderLock->lock();
m_computedBuffersMutex->lock();
}
//FIXME
//TODO: This is a nasty work arround. The race condition needs to be fixed !
if ( m_computedBuffers.isEmpty() == true )
return NULL;
::StackedBuffer<LightVideoFrame*>* buff;
if ( mode == ClipWorkflow::Pop )
buff = new StackedBuffer( m_computedBuffers.dequeue(), this, true );
......
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