[vlmc-devel] commit: Import manager: Fixing false invalid file positive. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sun Oct 31 19:52:15 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Oct 31 19:51:41 2010 +0100| [b2f3666e5c87c9d6e1207144d372c828d28ed313] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=b2f3666e5c87c9d6e1207144d372c828d28ed313
---

 src/Gui/import/ImportController.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Gui/import/ImportController.cpp b/src/Gui/import/ImportController.cpp
index 80a8590..1eacb58 100644
--- a/src/Gui/import/ImportController.cpp
+++ b/src/Gui/import/ImportController.cpp
@@ -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 );
     }



More information about the Vlmc-devel mailing list