[vlmc-devel] commit: WorkflowRenderer: Fix crash when adding an effect at runtime ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sat Jul 31 17:36:01 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Jul 30 20:40:07 2010 +0200| [09abebcf30f955f4b5c071c69e0714b3711bf290] | committer: Hugo Beauzée-Luyssen 

WorkflowRenderer: Fix crash when adding an effect at runtime

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

 src/Renderer/WorkflowRenderer.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index bb6ddce..127d596 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -394,6 +394,8 @@ void
 WorkflowRenderer::appendEffect( Effect *effect, qint64 start, qint64 end )
 {
     EffectInstance  *effectInstance = effect->createInstance();
+    if ( m_isRendering == true )
+        effectInstance->init( m_width, m_height );
     QWriteLocker    lock( m_effectsLock );
     m_effects.push_back( new EffectsEngine::EffectHelper( effectInstance, start, end ) );
 }



More information about the Vlmc-devel mailing list