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

Removed dead code

parent 2613422c
......@@ -40,7 +40,6 @@ ClipWorkflow::ClipWorkflow( Clip::Clip* clip ) :
m_initWaitCond = new WaitCondition;
m_pausingStateWaitCond = new WaitCondition;
m_renderLock = new QMutex;
m_feedingCondWait = new WaitCondition;
m_availableBuffersMutex = new QMutex;
m_computedBuffersMutex = new QMutex;
}
......@@ -181,14 +180,9 @@ LibVLCpp::MediaPlayer* ClipWorkflow::getMediaPlayer()
bool ClipWorkflow::preGetOutput()
{
QMutexLocker lock( m_feedingCondWait->getMutex() );
//Computed buffer mutex is already locked by underlying clipworkflow getoutput method
if ( getNbComputedBuffers() == 0 )
{
// qWarning() << "Waiting for buffer to be fed";
return false;
}
return true;
}
......@@ -220,13 +214,6 @@ void ClipWorkflow::commonUnlock()
setState( ClipWorkflow::PauseRequired );
m_mediaPlayer->pause();
}
// if ( getNbComputedBuffers() == 1 )
{
// qDebug() << "Waking feeding cont wait... acquiring lock. Type:" << debugType;
QMutexLocker lock( m_feedingCondWait->getMutex() );
// qDebug() << "feeding cont wait mutex acquired. Type:" << debugType;
m_feedingCondWait->wake();
}
}
void ClipWorkflow::computePtsDiff( qint64 pts )
......
......@@ -197,7 +197,6 @@ class ClipWorkflow : public QObject
* the clipworkflow hasn't generate a frame yet,
* while the renderer asks for one.
*/
WaitCondition* m_feedingCondWait;
QMutex* m_computedBuffersMutex;
QMutex* m_availableBuffersMutex;
qint64 m_beginPausePts;
......
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