summaryrefslogtreecommitdiff
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-03-12 21:52:25 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-03-12 21:52:25 +0000
commita4caff91f9e3aed8f512d51ca9012a220d4abdef (patch)
tree6627b5562b7fd36ed8f14264fa7c76fe8f1b1253 /rbutil
parent9f8e76bf22482e67cceddd35580c84d66877af5d (diff)
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
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/base/encoders.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/encoders.cpp b/rbutil/rbutilqt/base/encoders.cpp
index 43c43a8a8f..795b622bbd 100644
--- a/rbutil/rbutilqt/base/encoders.cpp
+++ b/rbutil/rbutilqt/base/encoders.cpp
@@ -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;
}