Minor bug fix in threads

This commit is contained in:
2016-03-29 15:56:25 +01:00
parent f596fda8dc
commit 122e8ec990
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ Void PlaYUVerAppModuleIf::update()
{
if( m_pcDisplaySubWindow )
{
m_pcDisplaySubWindow->refreshFrame();
m_pcDisplaySubWindow->refreshFrame( true );
}
}
+1 -1
View File
@@ -40,7 +40,7 @@ class QAction;
namespace plaYUVer
{
#define PLAYUVER_THREADED_MODULES
//#define PLAYUVER_THREADED_MODULES
class VideoSubWindow;
+2 -2
View File
@@ -621,7 +621,7 @@ Void VideoSubWindow::refreshFrameOperation()
{
m_cViewArea->setImage( m_pcCurrFrame );
}
for( Int i = 0; i < m_apcCurrentModule.size() && !m_bIsPlaying; i++ )
for( Int i = 0; i < m_apcCurrentModule.size() /*&& !m_bIsPlaying*/; i++ )
{
m_apcCurrentModule.at( i )->update();
}
@@ -686,7 +686,7 @@ Bool VideoSubWindow::playEvent()
bEndOfSeq = m_pCurrStream->setNextFrame();
if( !bEndOfSeq )
{
refreshFrame();
refreshFrame( true );
#ifndef QT_NO_CONCURRENT
m_cReadResult = QtConcurrent::run( m_pCurrStream, &PlaYUVerStream::readFrameFillRGBBuffer );
#else