- Fix seek using ffmpeg libs
 - Fix close of VideoSubWindow
This commit is contained in:
2018-01-31 01:32:29 +00:00
parent 87156f24b8
commit 0a8a31bce8
4 changed files with 15 additions and 2 deletions
+10
View File
@@ -196,6 +196,12 @@ VideoSubWindow::~VideoSubWindow()
* Events handlers
*/
Void VideoSubWindow::closeEvent( QCloseEvent* event )
{
stop();
SubWindowAbstract::closeEvent( event );
}
Void VideoSubWindow::keyPressEvent( QKeyEvent* event )
{
if( m_pcCurrentDisplayModule )
@@ -791,6 +797,10 @@ Void VideoSubWindow::seekRelativeEvent( Bool bIsFoward )
Void VideoSubWindow::stop()
{
#ifndef QT_NO_CONCURRENT
m_cRefreshResult.waitForFinished();
m_cReadResult.waitForFinished();
#endif
m_bIsPlaying = false;
seekAbsoluteEvent( 0 );
return;