From b43883c72bd726f58b5bc749495be6512110c3d7 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 20 Oct 2014 23:04:12 +0100 Subject: [PATCH] Bugfix in modules handle: first disable all modules then enable then --- source/app/ModulesHandle.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/app/ModulesHandle.cpp b/source/app/ModulesHandle.cpp index 22a9e0b..1d95e63 100644 --- a/source/app/ModulesHandle.cpp +++ b/source/app/ModulesHandle.cpp @@ -172,6 +172,12 @@ SubWindowHandle* ModulesHandle::enableModuleIf( PlaYUVerModuleIf *pcCurrModuleIf } } + // Disable existing Module + for( UInt i = 0; i < numberOfFrames; i++ ) + { + pcCurrModuleIf->m_pcSubWindow[i]->disableModule(); + } + // Create Module pcCurrModuleIf->create( pcCurrModuleIf->m_pcSubWindow[0]->getCurrFrame() ); @@ -334,7 +340,7 @@ Void ModulesHandle::openModuleIfStream( PlaYUVerModuleIf *pcCurrModuleIf ) Bool ModulesHandle::showModuleIf( PlaYUVerModuleIf *pcCurrModuleIf, PlaYUVerFrame* processedFrame ) { Bool bRet = false; - if( processedFrame ) + //if( processedFrame ) { if( pcCurrModuleIf->m_pcDisplaySubWindow ) { @@ -352,7 +358,7 @@ Bool ModulesHandle::showModuleIf( PlaYUVerModuleIf *pcCurrModuleIf, PlaYUVerFram Bool ModulesHandle::showModuleIf( PlaYUVerModuleIf *pcCurrModuleIf, Double moduleResult ) { Bool bRet = false; - pcCurrModuleIf->m_pcModuleDock->setModulueReturnValue(moduleResult); + pcCurrModuleIf->m_pcModuleDock->setModulueReturnValue( moduleResult ); return bRet; }