summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/encoders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/encoders.cpp')
-rw-r--r--rbutil/rbutilqt/base/encoders.cpp10
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
198bool EncRbSpeex::encode(QString input,QString output) 198bool 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 }