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

Import manager: Fixing false invalid file positive.

There is an highly chance of 0-lengthed images, as they don't have
length.
parent 10f220b1
......@@ -231,7 +231,8 @@ ImportController::accept()
collapseAllButCurrentPath();
foreach ( Clip* clip, m_temporaryMedias->clips().values() )
{
if ( clip->getMedia()->lengthMS() == 0 && clip->getMedia()->inputType() == Media::File )
if ( ( clip->getMedia()->lengthMS() == 0 && clip->getMedia()->fileType() != Media::Image ) &&
clip->getMedia()->inputType() == Media::File )
invalidMedias = true;
Library::getInstance()->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