From 7879306e6d3822027f368cc54e300e0413cab30e Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Tue, 14 Oct 2014 13:41:00 +0100 Subject: [PATCH] Fix the display of multiple sequences --- source/app/plaYUVerApp.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index 5498ba2..525e4ca 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -490,6 +490,15 @@ Void plaYUVerApp::startPlay() { if( !m_bIsPlaying ) { + for( Int i = 0; i < m_acPlayingSubWindows.size(); i++ ) + { + if( !m_acPlayingSubWindows.at( i )->play() ) + { + m_acPlayingSubWindows.remove( i ); + } + } + if( m_acPlayingSubWindows.size() > 0 ) + { UInt frameRate = m_acPlayingSubWindows.at( 0 )->getInputStream()->getFrameRate(); UInt timeInterval = ( UInt )( 1000.0 / frameRate + 0.5 ); qDebug( ) << "Desired frame rate: " @@ -498,6 +507,8 @@ Void plaYUVerApp::startPlay() m_pcPlayingTimer->start( timeInterval ); m_cTimer.start(); m_bIsPlaying = true; + m_arrayActions[PLAY_ACT]->setIcon( style()->standardIcon( QStyle::SP_MediaPause ) ); + } } } @@ -537,7 +548,6 @@ Void plaYUVerApp::play() m_bIsPlaying = false; } startPlay(); - m_arrayActions[PLAY_ACT]->setIcon( style()->standardIcon( QStyle::SP_MediaPause ) ); } else {