Minor changes in the variables in order to add return of the module progress
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user