Commit 2f54bc88 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Correctly identify sox effects as audio

svn path=/trunk/kdenlive/; revision=5596
parent 6d5de9af
...@@ -82,3 +82,9 @@ wave ...@@ -82,3 +82,9 @@ wave
#effects that have simplekeyframes #effects that have simplekeyframes
vignette vignette
#Effects not usable with a simple GUI
sox
ladspa
jackrack
\ No newline at end of file
...@@ -591,7 +591,7 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository, ...@@ -591,7 +591,7 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository,
QString id = metadata->get("identifier"); QString id = metadata->get("identifier");
eff.setAttribute("tag", id); eff.setAttribute("tag", id);
eff.setAttribute("id", id); eff.setAttribute("id", id);
if (id.startsWith("ladspa")) eff.setAttribute("type", "audio"); //kDebug()<<"Effect: "<<id;
QDomElement name = ret.createElement("name"); QDomElement name = ret.createElement("name");
name.appendChild(ret.createTextNode(metadata->get("title"))); name.appendChild(ret.createTextNode(metadata->get("title")));
...@@ -606,6 +606,11 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository, ...@@ -606,6 +606,11 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository,
eff.appendChild(author); eff.appendChild(author);
eff.appendChild(desc); 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()<<tags.get_name(i)<<"="<<tags.get(i);*/
Mlt::Properties param_props((mlt_properties) metadata->get_data("parameters")); Mlt::Properties param_props((mlt_properties) metadata->get_data("parameters"));
for (int j = 0; param_props.is_valid() && j < param_props.count(); j++) { for (int j = 0; param_props.is_valid() && j < param_props.count(); j++) {
QDomElement params = ret.createElement("parameter"); QDomElement params = ret.createElement("parameter");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment