Commit 80c10e2b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MainWorkflow: adding a getter for tracks.

parent 55b9c518
......@@ -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 );
}
......@@ -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:
......
......@@ -293,3 +293,9 @@ TrackHandler::lengthUpdated( qint64 )
emit lengthChanged( m_length );
}
}
TrackWorkflow*
TrackHandler::track( quint32 trackId )
{
return m_tracks[trackId];
}
......@@ -103,6 +103,8 @@ class TrackHandler : public QObject
void stopFrameComputing();
TrackWorkflow *track( quint32 trackId );
private:
void computeLength();
void allTracksEnded();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment