Commit 4e21dcf9 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

MainWorkflow: Have its own MediaContainer

We have to manage subclips that only are used in a timeline.
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent c41435d4
......@@ -36,6 +36,7 @@
#include <QMutex>
MainWorkflow::MainWorkflow( Settings* projectSettings, int trackCount ) :
m_mediaContainer( new MediaContainer ),
m_blackOutput( nullptr ),
m_lengthFrame( 0 ),
m_renderStarted( false ),
......@@ -72,6 +73,7 @@ MainWorkflow::~MainWorkflow()
delete m_currentFrameLock;
delete m_blackOutput;
delete m_settings;
delete m_mediaContainer;
}
void
......
......@@ -45,6 +45,7 @@ namespace Workflow
class Settings;
class QMutex;
class QReadWriteLock;
class MediaContainer;
#include <QObject>
#include <QUuid>
......@@ -278,6 +279,7 @@ class MainWorkflow : public QObject
void postLoad();
private:
MediaContainer* m_mediaContainer;
QList<Toggleable<TrackWorkflow*>> m_tracks;
/// Pre-filled buffer used when there's nothing to render
Workflow::Frame *m_blackOutput;
......
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