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