diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index cf6f4f4..fd6c900 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -437,8 +437,11 @@ Void plaYUVerApp::setTimerStatus() } if( status ) { - m_cTimer.start(); - m_bIsPlaying = true; + if( !m_bIsPlaying ) + { + m_cTimer.start(); + m_bIsPlaying = true; + } } else { @@ -472,13 +475,12 @@ Void plaYUVerApp::play() if( m_arrayActions[VIDEO_LOCK_ACT]->isChecked() && m_acPlayingSubWindows.size() ) { + if( !m_pcCurrentSubWindow->play() ) + { + return; + } if( !m_acPlayingSubWindows.contains( m_pcCurrentSubWindow ) ) { - if( !m_pcCurrentSubWindow->play() ) - { - return; - startPlay(); - } m_acPlayingSubWindows.append( m_pcCurrentSubWindow ); m_pcCurrentSubWindow->seekAbsoluteEvent( m_acPlayingSubWindows.at( 0 )->getInputStream()->getCurrFrameNum() ); updateTotalFrameNum();