]> git.sesse.net Git - kdenlive/commitdiff
If exporting to script: Use variables for the location of the playlist and the destin...
authorTill Theato <root@ttill.de>
Sat, 18 Dec 2010 14:34:39 +0000 (14:34 +0000)
committerTill Theato <root@ttill.de>
Sat, 18 Dec 2010 14:34:39 +0000 (14:34 +0000)
svn path=/trunk/kdenlive/; revision=5181

src/renderwidget.cpp

index db4f10469220200bdce8315f2982690114eebff3..95a989dd2febd6c514fe980d84e2931627ad1a62 100644 (file)
@@ -779,9 +779,11 @@ void RenderWidget::slotExport(bool scriptExport, int zoneIn, int zoneOut, const
         }
     }
 
-    if (resizeProfile) render_process_args << "consumer:" + playlistPath;
-    else render_process_args << playlistPath;
-    render_process_args << dest;
+    if (resizeProfile)
+        render_process_args << "consumer:" + (scriptExport ? "$SOURCE" : playlistPath);
+    else
+        render_process_args <<  (scriptExport ? "$SOURCE" : playlistPath);
+    render_process_args << (scriptExport ? "$TARGET" : dest);
     render_process_args << paramsList;
 
     QString group = m_view.size_list->currentItem()->data(MetaGroupRole).toString();