Set working directory of x264 to TEMP path to workaround x264's behavior of trying to create files (such as the OpenCL kernel) in the current working directory. By default, the working directory will be the x264 installation directory, which, of course, isn't writable on modern OS. This can lead to error messages. By setting the working directory explicitly to TEMP (which should always be writable) we avoid that.

This commit is contained in:
LoRd_MuldeR 2013-08-27 21:33:50 +02:00
parent 9f3bd0e5b4
commit aa8c4084cd

View File

@ -1381,6 +1381,8 @@ bool EncodeThread::startProcess(QProcess &process, const QString &program, const
}
}
process.setWorkingDirectory(QDir::tempPath());
if(mergeChannels)
{
process.setProcessChannelMode(QProcess::MergedChannels);