Commit 88fca5d1 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Removed debug

parent 6957f7de
......@@ -74,7 +74,7 @@ void ClipWorkflow::checkStateChange()
if ( m_requiredState != ClipWorkflow::None )
{
m_state = m_requiredState;
qDebug() << '[' << (void*)this << "] Applying required state change:" << m_state;
// qDebug() << '[' << (void*)this << "] Applying required state change:" << m_state;
m_requiredState = ClipWorkflow::None;
checkSynchronisation( m_state );
}
......@@ -85,7 +85,7 @@ void ClipWorkflow::lock( ClipWorkflow* cw, void** pp_ret, int size )
Q_UNUSED( size );
cw->m_renderLock->lock();
*pp_ret = cw->m_buffer;
qDebug() << '[' << (void*)cw << "] ClipWorkflow::lock";
// qDebug() << '[' << (void*)cw << "] ClipWorkflow::lock";
}
void ClipWorkflow::unlock( ClipWorkflow* cw, void* buffer, int width, int height, int bpp, int size )
......@@ -110,7 +110,7 @@ void ClipWorkflow::unlock( ClipWorkflow* cw, void* buffer, int width, int hei
cw->m_renderWaitCond->wake();
}
cw->emit renderComplete( cw );
qDebug() << "Emmiting render completed";
// qDebug() << "Emmiting render completed";
// qDebug() << "Entering cond wait";
cw->m_waitCond->wait( cw->m_condMutex );
......@@ -122,7 +122,7 @@ void ClipWorkflow::unlock( ClipWorkflow* cw, void* buffer, int width, int hei
}
else
cw->m_stateLock->unlock();
qDebug() << '[' << (void*)cw << "] ClipWorkflow::unlock";
// qDebug() << '[' << (void*)cw << "] ClipWorkflow::unlock";
cw->checkStateChange();
}
......@@ -303,7 +303,7 @@ void ClipWorkflow::setState( State state )
{
{
QWriteLocker lock( m_stateLock );
qDebug() << '[' << (void*)this << "] Setting state to" << state;
// qDebug() << '[' << (void*)this << "] Setting state to" << state;
m_state = state;
}
checkSynchronisation( state );
......
......@@ -326,7 +326,7 @@ void MainWorkflow::trackUnpaused()
void MainWorkflow::tracksRenderCompleted( unsigned int trackId )
{
qDebug() << "tracksRenderCompleted";
// qDebug() << "tracksRenderCompleted";
QMutexLocker lockNbTracks( m_nbTracksToRenderMutex );
--m_nbTracksToRender;
......@@ -344,7 +344,7 @@ void MainWorkflow::tracksRenderCompleted( unsigned int trackId )
//therefore, m_nbTracksToRender will be equal to -1
if ( m_nbTracksToRender <= 0 )
{
qDebug() << "main workflow render completed";
// qDebug() << "main workflow render completed";
//Just a synchronisation barriere
{
QMutexLocker lock( m_synchroneRenderWaitConditionMutex );
......@@ -357,9 +357,9 @@ unsigned char* MainWorkflow::getSynchroneOutput()
{
m_synchroneRenderWaitConditionMutex->lock();
getOutput();
qDebug() << "Waiting for sync output";
// qDebug() << "Waiting for sync output";
m_synchroneRenderWaitCondition->wait( m_synchroneRenderWaitConditionMutex );
qDebug() << "Got it";
// qDebug() << "Got it";
m_synchroneRenderWaitConditionMutex->unlock();
if ( m_synchroneRenderingBuffer == NULL )
return MainWorkflow::blackOutput;
......
......@@ -117,7 +117,7 @@ void TrackWorkflow::renderClip( ClipWorkflow* cw, qint64 currentFrame,
{
cw->getStateLock()->lockForRead();
qDebug() << "Rendering clip" << cw << "state:" << cw->getState();
// qDebug() << "Rendering clip" << cw << "state:" << cw->getState();
if ( cw->getState() == ClipWorkflow::Rendering )
{
//The rendering state meens... whell it means that the frame is
......@@ -453,7 +453,7 @@ ClipWorkflow* TrackWorkflow::removeClipWorkflow( const QUuid& id )
void TrackWorkflow::clipWorkflowRenderCompleted( ClipWorkflow* cw )
{
qDebug() << "Clip [" << QObject::sender() << "] render is completed on track" << m_trackId;
// qDebug() << "Clip [" << QObject::sender() << "] render is completed on track" << m_trackId;
if ( cw != NULL )
{
m_synchroneRenderBuffer = cw->getOutput();
......@@ -467,11 +467,11 @@ void TrackWorkflow::clipWorkflowRenderCompleted( ClipWorkflow* cw )
//or equal to 0
if ( m_nbClipToRender <= 0 )
{
qDebug() << "Track render completed";
// qDebug() << "Track render completed";
emit renderCompleted( m_trackId );
}
else
qDebug() << "Track render not completed yet";
// else
//s qDebug() << "Track render not completed yet";
}
unsigned char* TrackWorkflow::getSynchroneOutput()
......
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