Modification of the plaYUVerApp::updateTotalFrameNum

This commit is contained in:
jfmcarreira committed 2014-05-17 18:17:46 +01:00
1 parent 1fcd74de72
commit 5f50f60a33
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -476,10 +476,14 @@ Void plaYUVerApp::updateCurrFrameNum()
m_pcFrameSlider->setValue( frame_num ); m_pcFrameSlider->setValue( frame_num );
m_pcCurrFrameNumLabel->setText( QString( tr( "%1" ) ).arg( frame_num + 1 ) ); m_pcCurrFrameNumLabel->setText( QString( tr( "%1" ) ).arg( frame_num + 1 ) );
} }
else
{
m_pcCurrFrameNumLabel->setText( "1" );
}
} }
Void plaYUVerApp::updateTotalFrameNum( UInt total_frame_num ) Void plaYUVerApp::updateTotalFrameNum( UInt total_frame_num )
{ {
if( m_pcCurrentSubWindow && m_pcCurrentSubWindow->getInputStream() && total_frame_num == 0 ) if( m_pcCurrentSubWindow && m_pcCurrentSubWindow->getInputStream() && total_frame_num == 1 )
{ {
total_frame_num = m_pcCurrentSubWindow->getInputStream()->getFrameNum(); total_frame_num = m_pcCurrentSubWindow->getInputStream()->getFrameNum();
} }
+1 -1
View File
@@ -127,7 +127,7 @@ private:
Void startPlay(); Void startPlay();
Void setTimerStatus(); Void setTimerStatus();
Void updateCurrFrameNum(); Void updateCurrFrameNum();
Void updateTotalFrameNum( UInt total_frame_num = 0 ); Void updateTotalFrameNum( UInt total_frame_num = 1 );
Void updateMenus(); Void updateMenus();
Void updateStreamProperties(); Void updateStreamProperties();