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

Fixed length computation bug when removing clip.

parent df1e2a1d
......@@ -154,6 +154,7 @@ void WorkflowRenderer::checkActions()
void WorkflowRenderer::startPreview()
{
qDebug() << m_mainWorkflow->getLengthFrame();
if ( m_mainWorkflow->getLengthFrame() <= 0 )
return ;
m_mediaPlayer->setMedia( m_media );
......
......@@ -208,8 +208,10 @@ void MainWorkflow::moveClip( const QUuid& clipUuid, unsigned int oldTr
Clip* MainWorkflow::removeClip( const QUuid& uuid, unsigned int trackId, MainWorkflow::TrackType trackType )
{
Clip* clip = m_tracks[trackType]->removeClip( uuid, trackId );
computeLength();
emit clipRemoved( uuid, trackId, trackType );
return m_tracks[trackType]->removeClip( uuid, trackId );
return clip;
}
MainWorkflow::OutputBuffers* MainWorkflow::getSynchroneOutput()
......
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