]> git.sesse.net Git - kdenlive/blobdiff - src/projecttree/meltjob.cpp
Prepare for clip extra data (reusable analysis data)
[kdenlive] / src / projecttree / meltjob.cpp
index 2bf1680b036124559a62ae56bb7e69c4865eeb14..1e24caffc1582b4647c7640b61bf890a7f82895f 100644 (file)
@@ -93,13 +93,13 @@ void MeltJob::startJob()
         return;
     }
     Mlt::Producer *prod ;
-    if (m_extra.contains("project_profile")) {
-       m_profile = new Mlt::Profile(KdenliveSettings::current_profile().toUtf8().constData());
-    }
-    else {
+    if (m_extra.contains("producer_profile")) {
        m_profile = new Mlt::Profile;
        m_profile->set_explicit(false);
     }
+    else {
+       m_profile = new Mlt::Profile(KdenliveSettings::current_profile().toUtf8().constData());
+    }
     if (out == -1) {
        prod = new Mlt::Producer(*m_profile,  m_url.toUtf8().constData());
     }
@@ -108,7 +108,7 @@ void MeltJob::startJob()
         prod = tmp->cut(in, out);
        delete tmp;
     }
-    if (!m_extra.contains("project_profile")) {
+    if (m_extra.contains("prducer_profile")) {
        m_profile->from_producer(*prod);
        m_profile->set_explicit(true);
     }