+ if (args.at(0).startsWith(QLatin1String("in=")))
+ in = args.takeFirst().section(QLatin1Char('='), -1).toInt();
+ if (args.at(0).startsWith(QLatin1String("out=")))
+ out = args.takeFirst().section(QLatin1Char('='), -1).toInt();
+ if (args.at(0).startsWith(QLatin1String("preargs=")))
+ preargs = args.takeFirst().section(QLatin1Char('='), 1).split(QLatin1Char(' '), QString::SkipEmptyParts);
+
+ QString render = args.takeFirst();
+ QString profile = args.takeFirst();
+ QString rendermodule = args.takeFirst();
+ QString player = args.takeFirst();
+ QByteArray srcString = args.takeFirst().toUtf8();
+ QUrl srcurl = QUrl::fromEncoded(srcString);
+ QString src = srcurl.path();
+ // The QUrl path() strips the consumer: protocol, so re-add it if necessary
+ if (srcString.startsWith("consumer:"))
+ src.prepend(QLatin1String("consumer:"));
+ QUrl desturl = QUrl::fromEncoded(args.takeFirst().toUtf8());
+ QString dest = desturl.path();
+ bool dualpass = false;
+ bool doerase;
+ QString vpre;
+
+ int vprepos = args.indexOf(QRegExp(QLatin1String("vpre=.*")));
+ if (vprepos >= 0) {
+ vpre=args.at(vprepos);
+ }
+ QStringList vprelist = vpre.replace(QLatin1String("vpre="), QLatin1String("")).split(QLatin1Char(','));
+ if (vprelist.size() > 0) {
+ args.replaceInStrings(QRegExp(QLatin1String("^vpre=.*")), QString::fromLatin1("vpre=%1").arg(vprelist.at(0)));