summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <jb@kdenlive.org>2016-11-12 11:04:25 (GMT)
committerJean-Baptiste Mardelle <jb@kdenlive.org>2016-11-12 11:04:25 (GMT)
commitf3002dd8d31de218d3f8797cfd8b93647760a9cb (patch)
treedaa9f7ccc180143d6acf01abf2ad32f22debd09a
parentd6a8dc1fa449cd6f6c5701e889fa024dd380a176 (diff)
Fix rendering crash on finish
CCBUG: 371478
-rw-r--r--renderer/renderjob.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/renderer/renderjob.cpp b/renderer/renderjob.cpp
index 16a23db..5bfd1ac 100644
--- a/renderer/renderjob.cpp
+++ b/renderer/renderjob.cpp
@@ -282,7 +282,7 @@ void RenderJob::slotIsOver(QProcess::ExitStatus status, bool isWritable)
m_kdenliveinterface->callWithArgumentList(QDBus::NoBlock, QStringLiteral("setRenderingFinished"), m_dbusargs);
}
m_logstream << "Rendering of " << m_dest << " finished" << endl;
- if (!m_dualpass && !m_player.isEmpty()) {
+ if (!m_dualpass && m_player.length() > 3 && m_player.contains(QLatin1Char(' '))) {
QStringList args = m_player.split(QLatin1Char(' '));
QString exec = args.takeFirst();
// Decode url
@@ -290,6 +290,7 @@ void RenderJob::slotIsOver(QProcess::ExitStatus status, bool isWritable)
args << url;
QProcess::startDetached(exec, args);
}
+ m_logstream.flush();
if (m_dualpass) {
emit renderingFinished();
deleteLater();