]> git.sesse.net Git - kdenlive/blobdiff - src/projectlist.cpp
Fix multiple stabilize jobs: http://kdenlive.org/mantis/view.php?id=2771
[kdenlive] / src / projectlist.cpp
index e0ff8d2a3a8f3ff45164fc6003096690147d17fe..b6358b8c3015b3fceda98ea336c38a0cf102c004 100644 (file)
@@ -3462,15 +3462,17 @@ void ProjectList::processClipJob(QStringList ids, const QString&destination, boo
     foreach(const QString&id, ids) {
         ProjectItem *item = getItemById(id);
         if (!item) continue;
+       QStringList jobArgs;
+       jobArgs << preParams;
         if (ids.count() == 1) {
-            consumer += ':' + destination;
+            jobArgs << consumer + ':' + destination;
         }
         else {
-            consumer += ':' + destination + item->clipUrl().fileName() + ".mlt";
+            jobArgs << consumer + ':' + destination + item->clipUrl().fileName() + ".mlt";
         }
-        preParams << consumer << jobParams;
+        jobArgs << jobParams;
         
-        MeltJob *job = new MeltJob(item->clipType(), id, preParams);
+        MeltJob *job = new MeltJob(item->clipType(), id, jobArgs);
         if (autoAdd) {
             job->setAddClipToProject(true);
             kDebug()<<"// ADDING TRUE";