Commit fb9b810f authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

MainWorkflow: deleting blackoutput when closing.

blackOutput is now private
parent 436fbe92
...@@ -69,6 +69,7 @@ MainWorkflow::~MainWorkflow() ...@@ -69,6 +69,7 @@ MainWorkflow::~MainWorkflow()
for ( unsigned int i = 0; i < MainWorkflow::NbTrackType; ++i ) for ( unsigned int i = 0; i < MainWorkflow::NbTrackType; ++i )
delete m_tracks[i]; delete m_tracks[i];
delete[] m_tracks; delete[] m_tracks;
delete MainWorkflow::blackOutput;
} }
void void
......
...@@ -339,9 +339,6 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow> ...@@ -339,9 +339,6 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
void unsplit( Clip* origin, Clip* splitted, quint32 trackId, void unsplit( Clip* origin, Clip* splitted, quint32 trackId,
MainWorkflow::TrackType trackType ); MainWorkflow::TrackType trackType );
/// Pre-filled buffer used when there's nothing to render
static LightVideoFrame* blackOutput;
private: private:
MainWorkflow( int trackCount = 64 ); MainWorkflow( int trackCount = 64 );
~MainWorkflow(); ~MainWorkflow();
...@@ -384,6 +381,9 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow> ...@@ -384,6 +381,9 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
/// Height used for the render /// Height used for the render
quint32 m_height; quint32 m_height;
/// Pre-filled buffer used when there's nothing to render
static LightVideoFrame* blackOutput;
friend class Singleton<MainWorkflow>; friend class Singleton<MainWorkflow>;
private slots: private slots:
......
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