summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <jb@kdenlive.org>2016-10-31 19:19:28 (GMT)
committerJean-Baptiste Mardelle <jb@kdenlive.org>2016-11-01 19:15:08 (GMT)
commitd56831ea499f82c4e604d2b39aa855781c66b9ee (patch)
treee6814b7e702769420f8e2074e81c39909561a4db
parentcdea869691db89597411049d122dfba6ce3a6c53 (diff)
Use relative path in .mlt files created by clip jobs
-rw-r--r--src/project/jobs/meltjob.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/project/jobs/meltjob.cpp b/src/project/jobs/meltjob.cpp
index c076735..49247ef 100644
--- a/src/project/jobs/meltjob.cpp
+++ b/src/project/jobs/meltjob.cpp
@@ -176,6 +176,10 @@ void MeltJob::startJob()
m_consumer->set(j.key().toUtf8().constData(), j.value().toUtf8().constData());
}
}
+ if (consumerName.startsWith(QStringLiteral("xml:"))) {
+ // Use relative path in xml
+ m_consumer->set("root", QFileInfo(m_dest).absolutePath().toUtf8().constData());
+ }
// Build filter
if (!filterName.isEmpty()) {