Complete last commig

This commit is contained in:
2019-05-28 19:05:16 +01:00
parent b36bbeef7a
commit 63442d58b9
+10 -4
View File
@@ -324,11 +324,17 @@ int CalypTools::Open( int argc, char* argv[] )
return -1;
}
if( !(m_pcCurrModuleIf->m_uiModuleRequirements & CLP_MODULES_VARIABLE_NUM_FRAMES) &&
m_apcInputStreams.size() != m_pcCurrModuleIf->m_uiNumberOfFrames )
if( m_pcCurrModuleIf->m_uiModuleRequirements & CLP_MODULES_VARIABLE_NUM_FRAMES )
{
log( CLP_LOG_ERROR, "Invalid number of inputs! " );
return -1;
m_pcCurrModuleIf->m_uiNumberOfFrames = m_apcInputStreams.size();
}
else
{
if( m_apcInputStreams.size() != m_pcCurrModuleIf->m_uiNumberOfFrames )
{
log( CLP_LOG_ERROR, "Invalid number of inputs! " );
return -1;
}
}
m_pcCurrModuleIf->m_cModuleOptions.parse( argc, argv );