Stop playing when reaches the end of file

This commit is contained in:
2014-02-02 18:01:05 +00:00
parent 5d540fe1b8
commit a65b47f8a3
3 changed files with 25 additions and 3 deletions
+5
View File
@@ -137,6 +137,11 @@ bool SubWindowHandle::playEvent()
QMessageBox::warning( this, tr( "plaYUVer" ), tr( "Cannot read %1." ).arg( m_cCurrFileName ) );
return false;
}
else if( m_currStream.checkErrors( END_OF_SEQ ) )
{
m_cViewArea->setImage( QPixmap::fromImage( m_currStream.getFrameQImage() ) );
return false;
}
m_cViewArea->setImage( QPixmap::fromImage( m_currStream.getFrameQImage() ) );
return true;
}