Commit 09abebcf authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

WorkflowRenderer: Fix crash when adding an effect at runtime

parent a2c8ff6c
...@@ -394,6 +394,8 @@ void ...@@ -394,6 +394,8 @@ void
WorkflowRenderer::appendEffect( Effect *effect, qint64 start, qint64 end ) WorkflowRenderer::appendEffect( Effect *effect, qint64 start, qint64 end )
{ {
EffectInstance *effectInstance = effect->createInstance(); EffectInstance *effectInstance = effect->createInstance();
if ( m_isRendering == true )
effectInstance->init( m_width, m_height );
QWriteLocker lock( m_effectsLock ); QWriteLocker lock( m_effectsLock );
m_effects.push_back( new EffectsEngine::EffectHelper( effectInstance, start, end ) ); m_effects.push_back( new EffectsEngine::EffectHelper( effectInstance, start, end ) );
} }
......
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