Commit 2b0afc3a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Fix zone rendering with updated MLT

parent da564a70
Pipeline #4149 passed with stage
in 29 minutes and 13 seconds
......@@ -122,8 +122,11 @@ int main(int argc, char **argv)
f.close();
QDomElement consumer = doc.documentElement().firstChildElement(QStringLiteral("consumer"));
if (!consumer.isNull()) {
in = consumer.attribute("in").toInt();
out = consumer.attribute("out").toInt();
if (LIBMLT_VERSION_INT < 397568) {
// Previous MLT versions did not correctly pass in and out
in = consumer.attribute("in").toInt();
out = consumer.attribute("out").toInt();
}
if (consumer.hasAttribute(QLatin1String("s")) || consumer.hasAttribute(QLatin1String("r"))) {
// Workaround MLT embeded consumer resize (MLT issue #453)
playlist.prepend(QStringLiteral("xml:"));
......
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