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

ImportController: Do not connect a NULL media. Remove potentially wrong log message

parent db098ef8
......@@ -158,12 +158,10 @@ ImportController::importMedia( const QString &filePath )
return ;
Media* media = m_temporaryMedias->addMedia( filePath );
connect( media, SIGNAL( metaDataComputed() ), this, SLOT( mediaLoaded() ) );
if ( media == NULL )
{
vlmcCritical() << "An error occurred while loading media:" << filePath;
return ;
}
connect( media, SIGNAL( metaDataComputed() ), this, SLOT( mediaLoaded() ) );
Clip* clip = new Clip( media );
media->setBaseClip( clip );
m_temporaryMedias->addClip( clip );
......
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