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

Solved a connect problem.

parent da8e78ac
......@@ -57,7 +57,7 @@ void* AudioClipWorkflow::getOutput( ClipWorkflow::GetMode mode )
QMutexLocker lock( m_renderLock );
preGetOutput();
// qWarning() << "Audio. Available:" << m_availableBuffers.count() << "Computed:" << m_computedBuffers.count();
qWarning() << "Audio. Available:" << m_availableBuffers.count() << "Computed:" << m_computedBuffers.count();
if ( isEndReached() == true )
return NULL;
if ( mode == ClipWorkflow::Get )
......
......@@ -87,7 +87,7 @@ void ClipWorkflow::loadingComplete()
adjustBegin();
disconnect( m_mediaPlayer, SIGNAL( playing() ), this, SLOT( loadingComplete() ) );
connect( m_mediaPlayer, SIGNAL( playing() ), this, SLOT( mediaPlayerUnpaused() ), Qt::DirectConnection );
connect( m_mediaPlayer, SIGNAL( pause() ), this, SLOT( mediaPlayerPaused() ), Qt::DirectConnection );
connect( m_mediaPlayer, SIGNAL( paused() ), this, SLOT( mediaPlayerPaused() ), Qt::DirectConnection );
QMutexLocker lock( m_initWaitCond->getMutex() );
setState( Rendering );
qDebug() << "Waking init wait cond";
......@@ -255,7 +255,7 @@ void ClipWorkflow::computePtsDiff( qint64 pts )
void ClipWorkflow::mediaPlayerPaused()
{
qWarning() << "Media player paused, waiting for buffers to be consumed";
qWarning() << "\n\n\n\nMedia player paused, waiting for buffers to be consumed\n\n\n\n";
setState( ClipWorkflow::Paused );
}
......
......@@ -129,7 +129,7 @@ void* TrackWorkflow::renderClip( ClipWorkflow* cw, qint64 currentFrame,
{
cw->getStateLock()->lockForRead();
qDebug() << "Rendering clip" << cw << "state:" << cw->getState() << "Type:" << m_trackType;
// qDebug() << "Rendering clip" << cw << "state:" << cw->getState() << "Type:" << m_trackType;
if ( cw->getState() == ClipWorkflow::Rendering ||
cw->getState() == ClipWorkflow::Paused ||
cw->getState() == ClipWorkflow::PauseRequired ||
......@@ -153,7 +153,6 @@ void* TrackWorkflow::renderClip( ClipWorkflow* cw, qint64 currentFrame,
}
else if ( cw->getState() == ClipWorkflow::EndReached )
{
qDebug() << "State is endreached";
cw->getStateLock()->unlock();
//The stopClipWorkflow() method will take care of that.
}
......
......@@ -109,7 +109,6 @@ void* VideoClipWorkflow::getOutput( ClipWorkflow::GetMode mode )
void VideoClipWorkflow::lock( VideoClipWorkflow* cw, void** pp_ret, int size )
{
qDebug() << "video lock";
Q_UNUSED( size );
cw->m_renderLock->lock();
LightVideoFrame* lvf = NULL;
......@@ -130,7 +129,6 @@ void VideoClipWorkflow::lock( VideoClipWorkflow* cw, void** pp_ret, int size
void VideoClipWorkflow::unlock( VideoClipWorkflow* cw, void* buffer, int width, int height, int bpp, int size, qint64 pts )
{
qDebug() << "video unlock";
Q_UNUSED( buffer );
Q_UNUSED( width );
Q_UNUSED( height );
......
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