]> git.sesse.net Git - kdenlive/commitdiff
Fix display of proxy clip progress when using MLT with debug enabled
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 26 Dec 2012 16:45:47 +0000 (17:45 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 26 Dec 2012 16:45:47 +0000 (17:45 +0100)
src/projecttree/proxyclipjob.cpp

index ccd04b338fda9767f0165b01c418153812f305b0..dc228eb59bb2637d32f862edab340ff7fbc18258 100644 (file)
@@ -207,7 +207,7 @@ void ProxyJob::processLogInfo()
     else {
         // Parse MLT output
         if (log.contains("percentage:")) {
-            progress = log.section(':', -1).simplified().toInt();
+            progress = log.section("percentage:", 1).simplified().section(' ', 0, 0).toInt();
             emit jobProgress(m_clipId, progress, jobType);
         }
     }