From: Jean-Baptiste Mardelle Date: Wed, 18 May 2011 23:00:25 +0000 (+0000) Subject: Correctly identify sox effects as audio X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2f54bc88acfa7e73d39aae463d819005571c79d0;p=kdenlive Correctly identify sox effects as audio svn path=/trunk/kdenlive/; revision=5596 --- diff --git a/data/blacklisted_effects.txt b/data/blacklisted_effects.txt index e5c58d67..87f288fc 100644 --- a/data/blacklisted_effects.txt +++ b/data/blacklisted_effects.txt @@ -82,3 +82,9 @@ wave #effects that have simplekeyframes vignette + +#Effects not usable with a simple GUI + +sox +ladspa +jackrack \ No newline at end of file diff --git a/src/initeffects.cpp b/src/initeffects.cpp index 50b6224a..bdbbe907 100644 --- a/src/initeffects.cpp +++ b/src/initeffects.cpp @@ -591,7 +591,7 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository, QString id = metadata->get("identifier"); eff.setAttribute("tag", id); eff.setAttribute("id", id); - if (id.startsWith("ladspa")) eff.setAttribute("type", "audio"); + //kDebug()<<"Effect: "<get("title"))); @@ -606,6 +606,11 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository, eff.appendChild(author); eff.appendChild(desc); + Mlt::Properties tags((mlt_properties) metadata->get_data("tags")); + if (QString(tags.get(0)) == "Audio") eff.setAttribute("type", "audio"); + /*for (int i = 0; i < tags.count(); i++) + kDebug()<get_data("parameters")); for (int j = 0; param_props.is_valid() && j < param_props.count(); j++) { QDomElement params = ret.createElement("parameter");