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

+6
View File
@@ -202,6 +202,12 @@ Int SubWindowHandle::playEvent()
return -1;
}
Void SubWindowHandle::pause()
{
m_bIsPlaying = false;
return;
}
Void SubWindowHandle::seekAbsoluteEvent( UInt new_frame_num )
{
m_pCurrStream->seekInput( new_frame_num );
+1
View File
@@ -68,6 +68,7 @@ public:
Bool save();
Void play();
Void pause();
Int playEvent();
Void stop();
+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()