Commit 18ea3b1f authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Correcting length bugs

parent b3586a5c
......@@ -139,7 +139,7 @@ void ImportController::setUIMetaData( Media* media )
{
//Duration
QTime duration;
duration = duration.addSecs( media->getLengthMS() );
duration = duration.addMSecs( media->getLengthMS() );
m_ui->durationValueLabel->setText( duration.toString( "hh:mm:ss" ) );
//Filename || title
m_ui->nameValueLabel->setText( media->getFileInfo()->fileName() );
......
......@@ -109,7 +109,7 @@ void Clip::computeLength()
if ( fps < 0.1f )
fps = FPS;
m_length = m_end - m_begin;
m_lengthSeconds = m_length * fps;
m_lengthSeconds = m_length / fps;
emit lengthUpdated();
}
else
......
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