Fix input stream buffer behaviour in order to detect end of sequence and

add support to lock multiple sequence display
This commit is contained in:
jfmcarreira committed 2014-04-02 03:28:07 +01:00
1 parent ac6a3aaab9
commit 9c327eb0a3
5 files changed
+123 -101

No files matched your search

+9 -10
View File
@@ -175,26 +175,25 @@ Bool SubWindowHandle::save()
return true;
}
bool SubWindowHandle::playEvent()
Int SubWindowHandle::playEvent()
{
bool iRet = true;
if( m_bIsPlaying )
{
m_pCurrStream->setNextFrame();
refreshFrame();
if( m_pCurrStream->checkErrors( InputStream::END_OF_SEQ ) )
{
return -2;
}
m_pCurrStream->readNextFrame();
if( m_pCurrStream->checkErrors( READING ) )
if( m_pCurrStream->checkErrors( InputStream::READING ) )
{
QMessageBox::warning( this, tr( "plaYUVer" ), tr( "Cannot read %1." ).arg( m_cCurrFileName ) );
return false;
return -3;
}
else if( m_pCurrStream->checkErrors( END_OF_SEQ ) )
{
iRet = false;
}
return iRet;
return 0;
}
return false;
return -1;
}
Void SubWindowHandle::seekAbsoluteEvent( UInt new_frame_num )