Mercurial > hg > piper-cpp
comparison vamp-client/ProcessQtTransport.h @ 122:2380d5865355
Build fix, + run in debug mode for the mo
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 27 Oct 2016 14:52:30 +0100 |
parents | 56e537a7bb99 |
children | 4ff643c1eccc |
comparison
equal
deleted
inserted
replaced
121:56e537a7bb99 | 122:2380d5865355 |
---|---|
64 m_process = new QProcess(); | 64 m_process = new QProcess(); |
65 m_process->setReadChannel(QProcess::StandardOutput); | 65 m_process->setReadChannel(QProcess::StandardOutput); |
66 m_process->setProcessChannelMode(QProcess::ForwardedErrorChannel); | 66 m_process->setProcessChannelMode(QProcess::ForwardedErrorChannel); |
67 | 67 |
68 m_process->start(QString::fromStdString(processName), | 68 m_process->start(QString::fromStdString(processName), |
69 { QString::fromStdString(formatArg) }); | 69 { "-d", QString::fromStdString(formatArg) }); |
70 | 70 |
71 if (!m_process->waitForStarted()) { | 71 if (!m_process->waitForStarted()) { |
72 if (m_process->state() == QProcess::NotRunning) { | 72 if (m_process->state() == QProcess::NotRunning) { |
73 QProcess::ProcessError err = m_process->error(); | 73 QProcess::ProcessError err = m_process->error(); |
74 if (err == QProcess::FailedToStart) { | 74 if (err == QProcess::FailedToStart) { |