Skip to content
Snippets Groups Projects
Commit 4b6f6ddf authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

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

fix #15
parent 3050972c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment