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:
parent
9f3bd0e5b4
commit
aa8c4084cd
@ -1381,6 +1381,8 @@ bool EncodeThread::startProcess(QProcess &process, const QString &program, const
|
||||
}
|
||||
}
|
||||
|
||||
process.setWorkingDirectory(QDir::tempPath());
|
||||
|
||||
if(mergeChannels)
|
||||
{
|
||||
process.setProcessChannelMode(QProcess::MergedChannels);
|
||||
|
Loading…
Reference in New Issue
Block a user