[vlmc-devel] commit: ImportController: Fixing progress bar ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sat Jul 3 17:54:15 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sat Jul  3 17:52:29 2010 +0200| [71e3ba5f50e17becd865aef7bdafa0f606153e4b] | committer: Hugo Beauzée-Luyssen 

ImportController: Fixing progress bar

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

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

diff --git a/src/Gui/import/ImportController.cpp b/src/Gui/import/ImportController.cpp
index 6af9033..6c4c9c5 100644
--- a/src/Gui/import/ImportController.cpp
+++ b/src/Gui/import/ImportController.cpp
@@ -159,6 +159,7 @@ ImportController::importMedia( const QString &filePath )
     m_temporaryMedias->addClip( clip );
     ++m_nbMediaToLoad;
     m_ui->progressBar->setMaximum( m_nbMediaToLoad );
+    connect( media, SIGNAL( metaDataComputed( const Media* ) ), this, SLOT( mediaLoaded() ) );
 }
 
 void
@@ -322,6 +323,7 @@ ImportController::failedToLoad( Media *media )
     m_ui->errorLabel->show();
     QTimer::singleShot( 3000, this, SLOT( hideErrors() ) );
     m_temporaryMedias->deleteClip( media->baseClip()->uuid() );
+    mediaLoaded();
 }
 
 void
diff --git a/src/LibVLCpp/VLCInstance.cpp b/src/LibVLCpp/VLCInstance.cpp
index 24c9539..ddea119 100644
--- a/src/LibVLCpp/VLCInstance.cpp
+++ b/src/LibVLCpp/VLCInstance.cpp
@@ -29,7 +29,7 @@ Instance::Instance( QObject* parent /*= NULL*/ ) : QObject( parent )
 {
     char const *argv[] =
     {
-        "-vvvvv",
+//        "-vvvvv",
         "--no-skip-frames",
 //        "--intf", "dummy",
         "--text-renderer", "dummy",



More information about the Vlmc-devel mailing list