[vlmc-devel] WorkflowRenderer: Don't attempt to use a null render widget

Hugo Beauzée-Luyssen git at videolan.org
Mon Mar 28 16:24:14 CEST 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 28 16:09:31 2016 +0200| [4b6f6ddf7dc5972173960575498ebc29986e8b35] | committer: Hugo Beauzée-Luyssen

WorkflowRenderer: Don't attempt to use a null render widget

fix #15

> https://code.videolan.org/videolan/vlmc/commit/4b6f6ddf7dc5972173960575498ebc29986e8b35
---

 src/Renderer/WorkflowRenderer.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 7ac0b20..97e21b5 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -88,7 +88,8 @@ WorkflowRenderer::setupRenderer( quint32 width, quint32 height, double fps, cons
     m_sourceRenderer = m_source->createRenderer( m_eventWatcher );
     m_sourceRenderer->setName( "WorkflowRenderer" );
     m_sourceRenderer->enableMemoryInput( m_esHandler, getLockCallback(), getUnlockCallback() );
-    m_sourceRenderer->setOutputWidget( (void *) static_cast< RenderWidget* >( m_renderWidget )->id() );
+    if ( m_renderWidget != nullptr )
+        m_sourceRenderer->setOutputWidget( (void *) static_cast< RenderWidget* >( m_renderWidget )->id() );
 }
 
 int



More information about the Vlmc-devel mailing list