Commit 6ea9dfb5 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Removed useless flags

parent db088c95
......@@ -30,8 +30,6 @@
ClipWorkflow::ClipWorkflow( Clip::Clip* clip ) :
m_mediaPlayer(NULL),
m_requiredState( ClipWorkflow::None ),
m_rendering( false ),
m_initFlag( false ),
m_clip( clip ),
m_state( ClipWorkflow::Stopped )
{
......@@ -142,8 +140,6 @@ void ClipWorkflow::stop()
QMutexLocker lock( m_requiredStateLock );
m_requiredState = ClipWorkflow::None;
delete m_vlcMedia;
m_initFlag = false;
m_rendering = false;
}
else
qDebug() << "ClipWorkflow has already been stopped";
......
......@@ -183,18 +183,6 @@ class ClipWorkflow : public QObject
WaitCondition* m_initWaitCond;
WaitCondition* m_pausingStateWaitCond;
/**
* While this flag is set to false, we will use the same buffer, to prevent
* having X buffers with the same picture (when media player is paused mainly)
*/
bool m_rendering;
/**
* This flag is here to avoid multiple connection to the mediaPlayer* slots.
* It's essentially a nasty hack due to the multiples calls to lock/unlock when
* the render is started, and that cannot really be avoided...
*/
bool m_initFlag;
protected:
Clip* m_clip;
QMutex* m_renderLock;
......
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