diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2010-06-04 21:22:25 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2010-06-04 21:22:25 +0000 |
commit | a8c1934c9d8d3618b78a2a15788f6d3cf5040ca4 (patch) | |
tree | 4d0b742e0cae5230529f9bdb933321f3b9336347 /rbutil/rbutilqt/base/encoders.cpp | |
parent | 081bda8ab258c763e654067740f365be68269340 (diff) | |
download | rockbox-a8c1934c9d8d3618b78a2a15788f6d3cf5040ca4.tar.gz rockbox-a8c1934c9d8d3618b78a2a15788f6d3cf5040ca4.zip |
rbutil: Make TTS and encoders run on all cores \n FS#11160 by Delyan Kratunov
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26558 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/encoders.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/encoders.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/base/encoders.cpp b/rbutil/rbutilqt/base/encoders.cpp index 3b9e1432ed..d763b96b4b 100644 --- a/rbutil/rbutilqt/base/encoders.cpp +++ b/rbutil/rbutilqt/base/encoders.cpp | |||
@@ -131,7 +131,7 @@ bool EncExes::encode(QString input,QString output) | |||
131 | execstring.replace("%options",m_EncOpts); | 131 | execstring.replace("%options",m_EncOpts); |
132 | execstring.replace("%input",input); | 132 | execstring.replace("%input",input); |
133 | execstring.replace("%output",output); | 133 | execstring.replace("%output",output); |
134 | qDebug() << execstring; | 134 | qDebug() << "[EncExes] cmd: " << execstring; |
135 | int result = QProcess::execute(execstring); | 135 | int result = QProcess::execute(execstring); |
136 | return (result == 0) ? true : false; | 136 | return (result == 0) ? true : false; |
137 | } | 137 | } |
@@ -197,16 +197,16 @@ bool EncRbSpeex::start() | |||
197 | 197 | ||
198 | bool EncRbSpeex::encode(QString input,QString output) | 198 | bool EncRbSpeex::encode(QString input,QString output) |
199 | { | 199 | { |
200 | qDebug() << "encoding " << input << " to "<< output; | 200 | qDebug() << "[RbSpeex] Encoding " << input << " to "<< output; |
201 | char errstr[512]; | 201 | char errstr[512]; |
202 | 202 | ||
203 | FILE *fin,*fout; | 203 | FILE *fin,*fout; |
204 | if ((fin = fopen(input.toLocal8Bit(), "rb")) == NULL) { | 204 | if ((fin = fopen(input.toLocal8Bit(), "rb")) == NULL) { |
205 | qDebug() << "Error: could not open input file\n"; | 205 | qDebug() << "[RbSpeex] Error: could not open input file\n"; |
206 | return false; | 206 | return false; |
207 | } | 207 | } |
208 | if ((fout = fopen(output.toLocal8Bit(), "wb")) == NULL) { | 208 | if ((fout = fopen(output.toLocal8Bit(), "wb")) == NULL) { |
209 | qDebug() << "Error: could not open output file\n"; | 209 | qDebug() << "[RbSpeex] Error: could not open output file\n"; |
210 | fclose(fin); | 210 | fclose(fin); |
211 | return false; | 211 | return false; |
212 | } | 212 | } |
@@ -218,7 +218,7 @@ bool EncRbSpeex::encode(QString input,QString output) | |||
218 | 218 | ||
219 | if (!ret) { | 219 | if (!ret) { |
220 | /* Attempt to delete unfinished output */ | 220 | /* Attempt to delete unfinished output */ |
221 | qDebug() << "Error:" << errstr; | 221 | qDebug() << "[RbSpeex] Error:" << errstr; |
222 | QFile(output).remove(); | 222 | QFile(output).remove(); |
223 | return false; | 223 | return false; |
224 | } | 224 | } |