Commit 3d3e51ad authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Solving a bug when setting position of a just preloaded clip.

parent 180cfffb
......@@ -152,6 +152,11 @@ unsigned char* TrackWorkflow::renderClip( ClipWorkflow* cw, qint64 currentF
//Otherwise, it will start directly.
cw->getStateLock()->unlock();
cw->startRender();
if ( needRepositioning == true )
{
float pos = ( (float)( currentFrame - start ) / (float)(cw->getClip()->getLength()) );
cw->setPosition( pos );
}
}
else if ( cw->getState() == ClipWorkflow::EndReached )
{
......
Supports Markdown
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