Use function ModulesHandle::applyModuleIf to apply modules

This commit is contained in:
jfmcarreira committed 2014-05-13 04:35:04 +01:00
1 parent 68ee327b25
commit e2cf98d4cd
5 files changed
+13 -25

No files matched your search

+5 -11
View File
@@ -56,7 +56,6 @@ SubWindowHandle::SubWindowHandle( QWidget * parent ) :
//m_pCurrStream = new InputStream;
m_pcCurrFrame = NULL;
m_pcCurrentModule = NULL;
m_pcModuleSubWindow = NULL;
m_cWindowName = QString( " " );
m_bIsPlaying = false;
@@ -132,7 +131,6 @@ Void SubWindowHandle::disableModule()
{
PlaYUVerModuleIf* pcCurrentModule = m_pcCurrentModule;
m_pcCurrentModule = NULL;
m_pcModuleSubWindow = NULL;
ModulesHandle::destroyModuleIf( pcCurrentModule );
refreshFrame();
}
@@ -151,16 +149,12 @@ Void SubWindowHandle::refreshFrame()
m_pcCurrFrame = m_pCurrStream->getCurrFrame();
if( m_pcCurrentModule )
{
if( m_pcModuleSubWindow )
{
m_pcModuleSubWindow->setCurrFrame( m_pcCurrentModule->process( m_pcCurrFrame ) );
}
else
{
m_pcCurrFrame = m_pcCurrentModule->process( m_pcCurrFrame );
}
ModulesHandle::applyModuleIf( m_pcCurrentModule );
}
else
{
m_cViewArea->setImage( m_pcCurrFrame );
}
m_cViewArea->setImage( m_pcCurrFrame );
}
}