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

Solved bug that was preventing workflow to reach end when having only video tracks

parent 29ba995e
......@@ -415,8 +415,10 @@ void
MainWorkflow::tracksEndReached()
{
for ( unsigned int i = 0; i < MainWorkflow::NbTrackType; ++i )
{
if ( m_tracks[i]->endIsReached() == false )
return ;
}
emit mainWorkflowEndReached();
}
......
......@@ -80,9 +80,14 @@ TrackHandler::startRender()
{
m_paused = false;
m_endReached = false;
for ( unsigned int i = 0; i < m_trackCount; ++i )
activateTrack( i );
computeLength();
if ( m_length == 0 )
m_endReached = true;
else
{
for ( unsigned int i = 0; i < m_trackCount; ++i )
activateTrack( i );
}
}
void
......
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