[vlmc-devel] commit: MainWorkflow: adding a getter for tracks. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Thu Aug 26 23:03:07 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Aug 26 00:52:06 2010 +0200| [80c10e2b8ba54f54c6c1cf015b033913ce8f0756] | committer: Hugo Beauzée-Luyssen 

MainWorkflow: adding a getter for tracks.

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

 src/Workflow/MainWorkflow.cpp |    6 ++++++
 src/Workflow/MainWorkflow.h   |    2 ++
 src/Workflow/TrackHandler.cpp |    6 ++++++
 src/Workflow/TrackHandler.h   |    2 ++
 4 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index adf92eb..6bef12f 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -507,3 +507,9 @@ MainWorkflow::lengthUpdated( qint64 )
         emit lengthChanged( m_lengthFrame );
     }
 }
+
+TrackWorkflow*
+MainWorkflow::track( Workflow::TrackType type, quint32 trackId )
+{
+    return m_tracks[type]->track( trackId );
+}
diff --git a/src/Workflow/MainWorkflow.h b/src/Workflow/MainWorkflow.h
index 3dbe92d..42beb1b 100644
--- a/src/Workflow/MainWorkflow.h
+++ b/src/Workflow/MainWorkflow.h
@@ -324,6 +324,8 @@ class   MainWorkflow : public QObject, public Singleton<MainWorkflow>
          */
         void                    stopFrameComputing();
 
+        TrackWorkflow           *track( Workflow::TrackType type, quint32 trackId );
+
         const Workflow::Frame   *blackOutput() const;
 
     private:
diff --git a/src/Workflow/TrackHandler.cpp b/src/Workflow/TrackHandler.cpp
index dcf3727..4e65de1 100644
--- a/src/Workflow/TrackHandler.cpp
+++ b/src/Workflow/TrackHandler.cpp
@@ -293,3 +293,9 @@ TrackHandler::lengthUpdated( qint64 )
         emit lengthChanged( m_length );
     }
 }
+
+TrackWorkflow*
+TrackHandler::track( quint32 trackId )
+{
+    return m_tracks[trackId];
+}
diff --git a/src/Workflow/TrackHandler.h b/src/Workflow/TrackHandler.h
index cc80405..8a3f967 100644
--- a/src/Workflow/TrackHandler.h
+++ b/src/Workflow/TrackHandler.h
@@ -103,6 +103,8 @@ class   TrackHandler : public QObject
 
         void                    stopFrameComputing();
 
+        TrackWorkflow           *track( quint32 trackId );
+
     private:
         void                    computeLength();
         void                    allTracksEnded();



More information about the Vlmc-devel mailing list