]> git.sesse.net Git - kdenlive/blobdiff - src/trackview.cpp
Disable old LADSPA xml effects
[kdenlive] / src / trackview.cpp
index 2b06a311d60a89db02453dcc923a74c1688508b1..edabf94a03fced8d39eb86c7bc07e9d115349ffa 100644 (file)
@@ -848,13 +848,17 @@ void TrackView::slotAddProjectEffects(QDomNodeList effects, QDomElement parentNo
                             }
                             e.setAttribute("keyframes", kfrs.join(";"));
                         } else {
-                            e.setAttribute("value", paramvalue.toDouble() * fact);
+                            bool ok;
+                            e.setAttribute("value", paramvalue.toDouble(&ok) * fact);
+                            if (!ok)
+                                e.setAttribute("value", paramvalue);
                         }
                         break;
                     }
                 }
             }
-            if (effecttag == "ladspa") {
+            // Old LADSPA filter, deprecated
+            /*if (effecttag == "ladspa") {
                 //QString ladspaEffectFile = EffectsList::parameter(effect, "src", "property");
 
                 if (!QFile::exists(ladspaEffectFile)) {
@@ -862,7 +866,8 @@ void TrackView::slotAddProjectEffects(QDomNodeList effects, QDomElement parentNo
                     initEffects::ladspaEffectFile(ladspaEffectFile, currenteffect.attribute("ladspaid").toInt(), m_trackview->getLadspaParams(currenteffect));
                 }
                 currenteffect.setAttribute("src", ladspaEffectFile);
-            }
+            }*/
+            
             if (disableeffect) currenteffect.setAttribute("disable", "1");
             if (clip)
                 clip->addEffect(currenteffect, false);