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

When a clip is removed, its track is beeing checked for trackEndReached

If there is no more clip, the track signals itself as terminated, thus eventually stopping the mainWorkflow correctly
parent b2fb746a
......@@ -118,7 +118,6 @@ void TrackHandler::getOutput( qint64 currentFrame )
++m_nbTracksToRender;
m_tracks[i]->getOutput( currentFrame );
}
// qDebug() << "Tracks to render:" << m_nbTracksToRender;
}
void TrackHandler::pause()
......
......@@ -428,7 +428,8 @@ Clip* TrackWorkflow::removeClip( const QUuid& id )
computeLength();
disconnectClipWorkflow( cw );
delete cw;
qDebug() << "Removed clip";
if ( m_length == 0 )
emit trackEndReached( m_trackId );
return clip;
}
++it;
......
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