Fix last commit. Use just one QImage for every frame

This commit is contained in:
jfmcarreira committed 2014-02-08 01:29:48 +00:00
1 parent fcef6e09c4
commit 3cf0d866ad
5 files changed
+48 -41

No files matched your search

+6 -7
View File
@@ -139,24 +139,23 @@ void plaYUVerApp::play()
UInt frameRate = activeSubWindow()->getInputStream()->getFrameRate();
UInt timeInterval = ( UInt )( 1000.0 / frameRate + 0.5 );
playingTimer->start( timeInterval );
//connect( playingTimer, SIGNAL( timeout() ), activeSubWindow(), SLOT( playEvent() ) );
connect( playingTimer, SIGNAL( timeout() ), this, SLOT( playEvent() ) );
connect( playingTimer, SIGNAL( timeout() ), activeSubWindow(), SLOT( playEvent() ) );
//connect( playingTimer, SIGNAL( timeout() ), this, SLOT( playEvent() ) );
}
}
void plaYUVerApp::pause()
{
playingTimer->stop();
disconnect( activeSubWindow(), SLOT( playEvent() ) );
}
void plaYUVerApp::stop()
{
if( activeSubWindow() )
{
activeSubWindow()->stopEvent();
}
activeSubWindow()->stopEvent();
disconnect( activeSubWindow(), SLOT( playEvent() ) );
playingTimer->stop();
//disconnect( playingTimer, SIGNAL( timeout() ), 0, 0 );
}
void plaYUVerApp::playEvent()