[vlmc-devel] commit: ClipHelper: Adding an error() signal ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Mon May 31 23:07:23 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon May 31 23:09:08 2010 +0200| [bfd509616342fdd063e8f7f1c20403e983600c8c] | committer: Hugo Beauzée-Luyssen 

ClipHelper: Adding an error() signal

It's connected to the ClipWorkflow's error signal in the ClipWorkflow
constructor.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=bfd509616342fdd063e8f7f1c20403e983600c8c
---

 src/Workflow/ClipHelper.h     |    1 +
 src/Workflow/ClipWorkflow.cpp |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/Workflow/ClipHelper.h b/src/Workflow/ClipHelper.h
index 8b86e7b..5fe3842 100644
--- a/src/Workflow/ClipHelper.h
+++ b/src/Workflow/ClipHelper.h
@@ -69,6 +69,7 @@ class   ClipHelper : public QObject
 
     signals:
         void        lengthUpdated();
+        void        error();
 };
 
 #endif // CLIPHELPER_H
diff --git a/src/Workflow/ClipWorkflow.cpp b/src/Workflow/ClipWorkflow.cpp
index 3a040e6..5a7e034 100644
--- a/src/Workflow/ClipWorkflow.cpp
+++ b/src/Workflow/ClipWorkflow.cpp
@@ -40,6 +40,7 @@ ClipWorkflow::ClipWorkflow( ClipHelper* ch ) :
                 m_clipHelper( ch ),
                 m_state( ClipWorkflow::Stopped )
 {
+    connect( this, SIGNAL( error() ), ch, SIGNAL( error() ) );
     m_stateLock = new QReadWriteLock;
     m_initWaitCond = new WaitCondition;
     m_renderLock = new QMutex;
@@ -54,7 +55,8 @@ ClipWorkflow::~ClipWorkflow()
     delete m_stateLock;
 }
 
-void    ClipWorkflow::initialize()
+void
+ClipWorkflow::initialize()
 {
     setState( ClipWorkflow::Initializing );
 



More information about the Vlmc-devel mailing list