[vlmc-devel] ImportController: Do not connect a NULL media. Remove potentially wrong log message

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 24 20:09:42 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 16:51:32 2014 +0200| [d87640ec5e51e4c82430aa200b39d92a010f7871] | committer: Hugo Beauzée-Luyssen

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

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

 src/Gui/import/ImportController.cpp |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/Gui/import/ImportController.cpp b/src/Gui/import/ImportController.cpp
index f825305..3dc9c64 100644
--- a/src/Gui/import/ImportController.cpp
+++ b/src/Gui/import/ImportController.cpp
@@ -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 );



More information about the Vlmc-devel mailing list