summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <jb@kdenlive.org>2016-11-29 07:57:07 (GMT)
committerJean-Baptiste Mardelle <jb@kdenlive.org>2016-11-29 07:57:07 (GMT)
commitade0ce14193e4a2e62b9d683630a0deaa1d0876a (patch)
tree262b5debc17aebe5fa24037478dcc6d850fd83bd
parent7d0240c8a82ba4cdbbbf4fd07b7746c645cb35f9 (diff)
Fix error in previous commit
-rw-r--r--src/doc/documentchecker.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/doc/documentchecker.cpp b/src/doc/documentchecker.cpp
index 1f9def9..a85c62b 100644
--- a/src/doc/documentchecker.cpp
+++ b/src/doc/documentchecker.cpp
@@ -840,14 +840,15 @@ void DocumentChecker::fixClipItem(QTreeWidgetItem *child, QDomNodeList producers
// Fix clip
QString resource = getProperty(e, QLatin1String("resource"));
QString service = getProperty(e, QLatin1String("mlt_service"));
+ QString updatedResource = fixedResource;
if (resource.contains(QRegExp("\\?[0-9]+\\.[0-9]+(&amp;strobe=[0-9]+)?$"))) {
- fixedResource.append('?' + resource.section('?', -1));
+ updatedResource.append('?' + resource.section('?', -1));
}
if (service == QLatin1String("timewarp")) {
- setProperty(e, QLatin1String("warp_resource"), fixedResource);
- fixedResource.prepend(getProperty(e, QLatin1String("warp_speed")) + ":");
+ setProperty(e, QLatin1String("warp_resource"), updatedResource);
+ updatedResource.prepend(getProperty(e, QLatin1String("warp_speed")) + ":");
}
- setProperty(e, QLatin1String("resource"), fixedResource);
+ setProperty(e, QLatin1String("resource"), updatedResource);
}
}
}