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

Fixed bug when the render reached end while the slider was moved.

parent 3dd31358
......@@ -67,7 +67,7 @@ void ClipWorkflow::lock( ClipWorkflow* clipWorkflow, void** pp_ret )
//In any case, we give vlc a buffer to render in...
//If we don't, segmentation fault will catch us and eat our brain !! ahem...
qDebug() << "Locking in ClipWorkflow::lock";
// qDebug() << "Locking in ClipWorkflow::lock";
*pp_ret = clipWorkflow->m_buffer;
}
......
......@@ -81,4 +81,7 @@ qint64 MainWorkflow::getLength() const
void MainWorkflow::__endReached()
{
emit endReached();
m_renderStarted = false;
m_currentFrame = 0;
emit frameChanged( 0 );
}
......@@ -213,14 +213,15 @@ void TrackWorkflow::setPosition( float pos )
if ( it == m_clips.end() )
{
if ( m_current != end )
{
m_current.value()->stop();
}
m_current = next;
}
else if ( it == m_current )
{
// qDebug() << "Changing the position of the current clip";
//We're changing the position of the current clip
// qDebug() << "frame =" << frame << " key = "<< it.key() <<
it.value()->setPosition( (float)( frame - it.key() ) / (float)(it.value()->getClip()->getLength()) );
//Awaking renderers to avoid them to be stuck inside of the lock...
// qDebug() << "Waking all renderer threads";
......
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