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

Using real FPS as the video's FPS, thus correcting the length in the timeline

parent 451abb3e
......@@ -140,7 +140,8 @@ void TracksView::dragEnterEvent( QDragEnterEvent* event )
if ( m_dragItem ) delete m_dragItem;
m_dragItem = new GraphicsMovieItem( new Clip( media ) );
m_dragItem->setWidth( ( int ) ( ( (double)media->getLength() / 1000 ) * m_fps ) );
m_dragItem->setWidth( ( int ) ( ( (double)media->getLength() / 1000 ) *
( (media->getFps() > 0) ? media->getFps() : m_fps) ) );
m_dragItem->setHeight( tracksHeight() );
m_dragItem->setPos( mappedXPos, 0 );
m_dragItem->setParentItem( m_layout->itemAt( 0 )->graphicsItem() );
......
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