mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 01:52:35 -05:00
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:
parent
9f8e76bf22
commit
a4caff91f9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue