Commit 5a7e16fe authored by Vincent Carrubba's avatar Vincent Carrubba
Browse files

Check mixer effects instanciation success before connect it

parent eb8b8067
...@@ -36,7 +36,8 @@ EffectsEngine::EffectsEngine( void ) : m_patch( NULL ), m_bypassPatch( NULL ) ...@@ -36,7 +36,8 @@ EffectsEngine::EffectsEngine( void ) : m_patch( NULL ), m_bypassPatch( NULL )
quint32 i; quint32 i;
EffectNode* tmp; EffectNode* tmp;
m_patch->createChild( "libVLMC_MixerEffectPlugin" ); if ( m_patch->createChild( "libVLMC_MixerEffectPlugin" ) == true )
{
m_patch->createChild( "libVLMC_BlitInRectangleEffectPlugin" ); m_patch->createChild( "libVLMC_BlitInRectangleEffectPlugin" );
m_patch->createChild( "libVLMC_InvertRNBEffectPlugin" ); m_patch->createChild( "libVLMC_InvertRNBEffectPlugin" );
for ( i = 0 ; i < 64; ++i) for ( i = 0 ; i < 64; ++i)
...@@ -48,7 +49,6 @@ EffectsEngine::EffectsEngine( void ) : m_patch( NULL ), m_bypassPatch( NULL ) ...@@ -48,7 +49,6 @@ EffectsEngine::EffectsEngine( void ) : m_patch( NULL ), m_bypassPatch( NULL )
} }
m_patch->createStaticVideoOutput(); m_patch->createStaticVideoOutput();
// RECUP LE MIXER ET CONNECTE SA SORTIE 1 A L'INTERNAL INPUT DU ROOT NODE // RECUP LE MIXER ET CONNECTE SA SORTIE 1 A L'INTERNAL INPUT DU ROOT NODE
tmp = m_patch->getChild( 1 ); tmp = m_patch->getChild( 1 );
if ( tmp->connectChildStaticVideoOutputToParentStaticVideoInput( 1, 1 ) == false ) if ( tmp->connectChildStaticVideoOutputToParentStaticVideoInput( 1, 1 ) == false )
...@@ -75,6 +75,9 @@ EffectsEngine::EffectsEngine( void ) : m_patch( NULL ), m_bypassPatch( NULL ) ...@@ -75,6 +75,9 @@ EffectsEngine::EffectsEngine( void ) : m_patch( NULL ), m_bypassPatch( NULL )
// if ( tmp->connectStaticVideoOutputToStaticVideoInput( 1, 2, 1 ) == false ) // if ( tmp->connectStaticVideoOutputToStaticVideoInput( 1, 2, 1 ) == false )
// qDebug() << "La connection de la sortie n'as pas reussie, MERDE"; // qDebug() << "La connection de la sortie n'as pas reussie, MERDE";
} }
else
qDebug() << "There's not the video mixer plugin, so I can't output video";
}
} }
EffectsEngine::~EffectsEngine() EffectsEngine::~EffectsEngine()
......
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