Commit f1fda8e6 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Temporary hack to avoid solt persistance.

parent 72d05b45
...@@ -45,8 +45,9 @@ void MixerEffectPlugin::init( IEffectNode* ien ) ...@@ -45,8 +45,9 @@ void MixerEffectPlugin::init( IEffectNode* ien )
void MixerEffectPlugin::render( void ) void MixerEffectPlugin::render( void )
{ {
quint32 i; quint32 i;
quint32 nbIns; quint32 nbIns;
static LightVideoFrame nullFrame;
nbIns = m_ien->getNBStaticsVideosInputs(); nbIns = m_ien->getNBStaticsVideosInputs();
for ( i = nbIns; i > 0; --i ) for ( i = nbIns; i > 0; --i )
...@@ -58,5 +59,6 @@ void MixerEffectPlugin::render( void ) ...@@ -58,5 +59,6 @@ void MixerEffectPlugin::render( void )
return ; return ;
} }
} }
(*m_ien->getStaticVideoOutput( 1 )) << nullFrame;
return ; return ;
} }
...@@ -142,7 +142,10 @@ MainWorkflow::getOutput( TrackType trackType, bool paused ) ...@@ -142,7 +142,10 @@ MainWorkflow::getOutput( TrackType trackType, bool paused )
{ {
m_effectEngine->render(); m_effectEngine->render();
const LightVideoFrame &tmp = m_effectEngine->getVideoOutput( 1 ); const LightVideoFrame &tmp = m_effectEngine->getVideoOutput( 1 );
m_outputBuffers->video = &tmp; if ( tmp->nboctets == 0 )
m_outputBuffers->video = blackOutput;
else
m_outputBuffers->video = &tmp;
} }
else else
{ {
......
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