diff --git a/CMakeLists.txt b/CMakeLists.txt index b697fa3..fd49c29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ ADD_DEFINITIONS( "-DPLAYUVER" ) ###################################################################################### ADD_OPTION(PLAYUVER_LONGVERSIONNAME "Use long version name in deb" OFF ) ADD_OPTION(PLAYUVER_WERROR "Warnings as errors" OFF ) -ADD_OPTION(PLAYUVER_THREADED_MODULES "Warnings as errors" ON ) +ADD_OPTION(PLAYUVER_THREADED_MODULES "Use threads for modules" OFF ) ADD_OPTION(PLAYUVER_INSTALL_LIBS "Install PlaYUVer Lib" ON ) ADD_OPTION(USE_QT4 "Build with QT4" OFF ) ADD_OPTION(USE_OPENCV "Add OpenCV support" OFF ) diff --git a/source/app/ModulesHandle.cpp b/source/app/ModulesHandle.cpp index 1d95e63..4a5a838 100644 --- a/source/app/ModulesHandle.cpp +++ b/source/app/ModulesHandle.cpp @@ -272,7 +272,7 @@ Void ModulesHandle::applyAllModuleIf( PlaYUVerModuleIf *pcCurrModuleIf ) pcCurrModuleIf->m_pcSubWindow[i]->stop(); } QApplication::setOverrideCursor( Qt::WaitCursor ); - for( UInt f = 0; f < numberOfFrames; f++ ) + for( UInt f = 1; f < numberOfFrames; f++ ) { applyModuleIf( pcCurrModuleIf, false, true ); QCoreApplication::processEvents(); @@ -283,6 +283,10 @@ Void ModulesHandle::applyAllModuleIf( PlaYUVerModuleIf *pcCurrModuleIf ) pcCurrModuleIf->m_pcSubWindow[i]->playEvent(); } } + for( UInt i = 0; i < numberOfWindows; i++ ) + { + pcCurrModuleIf->m_pcSubWindow[i]->stop(); + } QApplication::restoreOverrideCursor(); } }