Add seek functions into the playuver

This commit is contained in:
jfmcarreira committed 2014-03-27 18:16:49 +00:00
1 parent 585c402335
commit 50fd611291
5 files changed
+30 -4

No files matched your search

+8 -2
View File
@@ -208,15 +208,21 @@ bool SubWindowHandle::playEvent()
return false;
}
Void SubWindowHandle::seekEvent( UInt new_frame_num )
Void SubWindowHandle::seekAbsoluteEvent( UInt new_frame_num )
{
m_pCurrStream->seekInput( new_frame_num );
refreshFrame();
}
Void SubWindowHandle::seekRelativeEvent( Bool bIsFoward )
{
m_pCurrStream->seekInput( m_pCurrStream->getCurrFrameNum() + ( bIsFoward ? 1 : -1 ) );
refreshFrame();
}
Void SubWindowHandle::stopEvent()
{
seekEvent( 0 );
seekAbsoluteEvent( 0 );
return;
}