Bugfix in close event while in pause

This commit is contained in:
jfmcarreira committed 2014-04-03 17:27:29 +01:00
1 parent 6ed0373566
commit 9b5e1fbe8a
3 files changed
+24 -20

No files matched your search

+17 -20
View File
@@ -263,33 +263,30 @@ void plaYUVerApp::play()
void plaYUVerApp::pause()
{
for( Int i = 0; i < m_acPlayingSubWindows.size(); i++ )
{
m_acPlayingSubWindows.at( i )->pause();
}
playingTimer->stop();
}
void plaYUVerApp::stop()
{
if( m_acPlayingSubWindows.size() )
for( Int i = 0; i < m_acPlayingSubWindows.size(); i++ )
{
for( Int i = 0; i < m_acPlayingSubWindows.size(); i++ )
{
m_acPlayingSubWindows.at( i )->stop();
}
m_acPlayingSubWindows.clear();
playingTimer->stop();
m_pcFrameSlider->setValue( m_pcCurrentSubWindow->getInputStream()->getCurrFrameNum() );
m_acPlayingSubWindows.at( i )->stop();
}
m_acPlayingSubWindows.clear();
playingTimer->stop();
m_pcFrameSlider->setValue( m_pcCurrentSubWindow->getInputStream()->getCurrFrameNum() );
if( m_uiAveragePlayInterval )
qDebug( ) << "Real display time: "
<< QString::number( 1000 / m_uiAveragePlayInterval )
<< " fps";
m_uiAveragePlayInterval = 0;
if( m_uiAveragePlayInterval )
qDebug( ) << "Real display time: "
<< QString::number( 1000 / m_uiAveragePlayInterval )
<< " fps";
m_uiAveragePlayInterval = 0;
}
else
{
m_pcCurrentSubWindow->stop();
playingTimer->stop();
m_pcFrameSlider->setValue( m_pcCurrentSubWindow->getInputStream()->getCurrFrameNum() );
}
}
void plaYUVerApp::playEvent()