Bugfixes and improvements

Uniform the use of unsigned long in the frame number by defining a ClpULong type
CalypFrame Add function to copyTo a specific position
This commit is contained in:
2019-02-20 22:22:43 +00:00
parent 00ec0485f4
commit ca562ae9f4
22 changed files with 88 additions and 53 deletions
+5 -5
View File
@@ -320,8 +320,8 @@ void VideoHandle::update()
CalypStream* pcStream = m_pcCurrentVideoSubWindow->getInputStream();
CalypFrame* pcFrame = m_pcCurrentVideoSubWindow->getCurrFrame();
int frame_num = 0;
unsigned long long int total_frame_num = 1;
unsigned long frame_num = 0;
unsigned long total_frame_num = 1;
m_pcVideoFormatLabel->setText( m_pcCurrentVideoSubWindow->getStreamInformation() );
@@ -519,10 +519,10 @@ void VideoHandle::moveAllScrollBars( const double& horRatio, const double& verRa
}
#endif
unsigned long long int VideoHandle::getMaxFrameNumber()
unsigned long VideoHandle::getMaxFrameNumber()
{
unsigned int currFrames;
unsigned long long int maxFrames = INT_MAX;
unsigned long currFrames;
unsigned long maxFrames = INT_MAX;
if( m_pcCurrentVideoSubWindow )
{
if( m_acPlayingSubWindows.contains( m_pcCurrentVideoSubWindow ) )