Fix missing param name in avfilters

parent 3022c6ac
Pipeline #9321 passed with stage
in 14 minutes and 5 seconds
...@@ -239,6 +239,9 @@ template <typename AssetType> bool AbstractAssetsRepository<AssetType>::parseInf ...@@ -239,6 +239,9 @@ template <typename AssetType> bool AbstractAssetsRepository<AssetType>::parseInf
} }
} }
QString paramName = paramdesc.get("title"); QString paramName = paramdesc.get("title");
if (paramName.isEmpty()) {
paramName = paramdesc.get("identifier");
}
if (!paramName.isEmpty()) { if (!paramName.isEmpty()) {
QDomElement pname = doc.createElement(QStringLiteral("name")); QDomElement pname = doc.createElement(QStringLiteral("name"));
pname.appendChild(doc.createTextNode(paramName)); pname.appendChild(doc.createTextNode(paramName));
......
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