Commit 27e7af70 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Resolved potential bug when rendering too fast

parent bde4e3fe
......@@ -65,7 +65,7 @@ void ClipWorkflow::checkStateChange()
if ( m_requiredState != ClipWorkflow::None )
{
m_state = m_requiredState;
// qDebug() << '[' << (void*)this << "] Applying required state change:" << m_state;
qDebug() << '[' << (void*)this << "] Applying required state change:" << m_state;
m_requiredState = ClipWorkflow::None;
checkSynchronisation( m_state );
}
......@@ -219,7 +219,7 @@ void ClipWorkflow::setState( State state )
{
{
QWriteLocker lock( m_stateLock );
// qDebug() << '[' << (void*)this << "] Setting state to" << state;
qDebug() << '[' << (void*)this << "] Setting state to" << state;
m_state = state;
}
checkSynchronisation( state );
......
......@@ -54,6 +54,7 @@ MainWorkflow::MainWorkflow( int trackCount ) :
}
m_outputBuffers = new OutputBuffers;
m_effectEngine = new EffectsEngine;
m_nbTracksToRenderMutex = new QMutex;
}
MainWorkflow::~MainWorkflow()
......@@ -62,6 +63,7 @@ MainWorkflow::~MainWorkflow()
stop();
delete m_effectEngine;
delete m_nbTracksToRenderMutex;
delete m_synchroneRenderWaitConditionMutex;
delete m_synchroneRenderWaitCondition;
delete m_renderMutex;
......
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