Commit 5e4f7322 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Media: Fixing a length computing bug.

parent 26f00a72
......@@ -67,7 +67,6 @@ Media::Media( const QString& filePath )
//FIXME:
m_fileType = Media::Video;
m_fileName = m_mrl;
qDebug() << "Loading a stream";
m_vlcMedia = new LibVLCpp::Media( m_mrl );
}
m_audioValueList = new QList<int>();
......@@ -270,6 +269,7 @@ Media::isInWorkspace() const
void
Media::setFilePath( const QString &filePath )
{
m_inputType = Media::File;
if ( m_fileInfo )
delete m_fileInfo;
m_fileInfo = new QFileInfo( filePath );
......
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