Respect the exit code of external encoder called.

Return an error if the exit code differs from 0. Fixes voice file creation
getting displayed as successful even if encoding didn't work (f.e. due to wrong
command line parameters set in the configuration dialog).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25138 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2010-03-12 21:52:25 +00:00
parent 9f8e76bf22
commit a4caff91f9

View file

@ -132,8 +132,8 @@ bool EncExes::encode(QString input,QString output)
execstring.replace("%input",input);
execstring.replace("%output",output);
qDebug() << execstring;
QProcess::execute(execstring);
return true;
int result = QProcess::execute(execstring);
return (result == 0) ? true : false;
}