Fix CalypTools loop with the new module API

This commit is contained in:
2019-02-22 17:31:53 +00:00
parent 1dfbc06d7f
commit b20d5aef49
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ bool ThreeSixtySpatialtoTemporal::flush()
bool ThreeSixtySpatialtoTemporal::needFrame()
{
if( m_iFrameBufferCount == 0 )
if( m_iFrameBufferCount <= 0 )
{
return true;
}
+4 -5
View File
@@ -573,13 +573,9 @@ int CalypTools::ModuleOperation()
apcFrameList.push_back( m_apcInputStreams[i]->getCurrFrame() );
}
for( unsigned int frame = 0; frame < m_uiNumberOfFrames; frame++ )
for( unsigned int frame = 0; frame < m_uiNumberOfFrames; )
{
bool bReadFrame = true;
if( apcFrameList.size() == 0 )
{
break;
}
if( m_pcCurrModuleIf->m_iModuleType == CLP_FRAME_PROCESSING_MODULE )
{
if( m_pcCurrModuleIf->m_iModuleAPI >= CLP_MODULE_API_2 )
@@ -607,7 +603,10 @@ int CalypTools::ModuleOperation()
bReadFrame = m_pcCurrModuleIf->needFrame();
}
if( bReadFrame )
{
apcFrameList = readInput();
frame++;
}
}
if( m_pcCurrModuleIf->m_iModuleAPI >= CLP_MODULE_API_3 )