Minor changes in the variables in order to add return of the module progress

This commit is contained in:
2016-05-04 18:28:02 +01:00
parent f0fc355d73
commit 9d043d6901
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -103,7 +103,7 @@ Bool PlaYUVerAppModuleIf::apply( Bool isPlaying, Bool disableThreads )
Void PlaYUVerAppModuleIf::run()
{
m_bIsRunning = true;
m_bSuccess = false;
std::vector<PlaYUVerFrame*> apcFrameList;
for( UInt i = 0; i < m_pcModule->m_uiNumberOfFrames; i++ )
{
@@ -136,9 +136,10 @@ Void PlaYUVerAppModuleIf::run()
{
return;
}
m_bSuccess = true;
m_bIsRunning = false;
#ifdef PLAYUVER_THREADED_MODULES
EventData *eventData = new EventData( true, this );
EventData *eventData = new EventData( m_bSuccess, this );
if( parent() )
QCoreApplication::postEvent( parent(), eventData );
#endif
+2 -1
View File
@@ -55,6 +55,7 @@ class PlaYUVerAppModuleIf
private:
Bool m_bIsRunning;
Bool m_bSuccess;
QAction* m_pcModuleAction;
PlaYUVerModuleIf* m_pcModule;
@@ -74,7 +75,7 @@ public:
class EventData: public QEvent
{
public:
EventData( bool success = false, PlaYUVerAppModuleIf* module = NULL ) :
EventData( bool success, PlaYUVerAppModuleIf* module ) :
QEvent( QEvent::User )
{
m_bSuccess = success;