Fix last commit. Use just one QImage for every frame
This commit is contained in:
1 parent
fcef6e09c4
commit
3cf0d866ad
5 files changed
+48
-41
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user