Workaround: QProcess::start() doesn't wrap arguments with white-spaces into quotes, unless the second parameter is passed in. This should fix the detection of the Nero encoder.
This commit is contained in:
parent
2ea5e07d6e
commit
bfa197b020
@ -25,7 +25,7 @@
|
|||||||
#define VER_LAMEXP_MAJOR 4
|
#define VER_LAMEXP_MAJOR 4
|
||||||
#define VER_LAMEXP_MINOR_HI 0
|
#define VER_LAMEXP_MINOR_HI 0
|
||||||
#define VER_LAMEXP_MINOR_LO 0
|
#define VER_LAMEXP_MINOR_LO 0
|
||||||
#define VER_LAMEXP_BUILD 50
|
#define VER_LAMEXP_BUILD 51
|
||||||
#define VER_LAMEXP_SUFFIX TechPreview
|
#define VER_LAMEXP_SUFFIX TechPreview
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -546,7 +546,7 @@ const QString &lamexp_temp_folder(void)
|
|||||||
temp.mkpath(".");
|
temp.mkpath(".");
|
||||||
if(!temp.exists())
|
if(!temp.exists())
|
||||||
{
|
{
|
||||||
qFatal("The system's temporary directory does not exist:\n%s", temp.canonicalPath().toUtf8().constData());
|
qFatal("The system's temporary directory does not exist:\n%s", temp.absolutePath().toUtf8().constData());
|
||||||
return g_lamexp_temp_folder;
|
return g_lamexp_temp_folder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -172,13 +172,13 @@ void InitializationThread::initNeroAac(void)
|
|||||||
QProcess process;
|
QProcess process;
|
||||||
process.setProcessChannelMode(QProcess::MergedChannels);
|
process.setProcessChannelMode(QProcess::MergedChannels);
|
||||||
process.setReadChannel(QProcess::StandardOutput);
|
process.setReadChannel(QProcess::StandardOutput);
|
||||||
process.start(neroFileInfo[0].canonicalFilePath());
|
process.start(neroFileInfo[0].canonicalFilePath(), QStringList() << "-help");
|
||||||
|
|
||||||
if(!process.waitForStarted())
|
if(!process.waitForStarted())
|
||||||
{
|
{
|
||||||
qWarning("Nero process failed to create!");
|
qWarning("Nero process failed to create!");
|
||||||
qWarning("Error message: \"%s\"\n", process.errorString().toLatin1().constData());
|
qWarning("Error message: \"%s\"\n", process.errorString().toLatin1().constData());
|
||||||
qDebug("File '%s' does exist?\n%s\n!", neroFileInfo[0].canonicalFilePath().toUtf8().constData(), (neroFileInfo[0].exists() ? "Yes, it still exists" : "Nope, it disappeared"));
|
qDebug("File '%s' does exist?\n%s!\n", neroFileInfo[0].canonicalFilePath().toUtf8().constData(), (neroFileInfo[0].exists() ? "Yes, it still exists" : "Nope, it disappeared"));
|
||||||
process.kill();
|
process.kill();
|
||||||
process.waitForFinished(-1);
|
process.waitForFinished(-1);
|
||||||
for(int i = 0; i < 3; i++) LAMEXP_DELETE(neroBin[i]);
|
for(int i = 0; i < 3; i++) LAMEXP_DELETE(neroBin[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user