Transcoder now deletes created files on error
This commit is contained in:
parent
2a4e9596b6
commit
942516c840
|
@ -432,6 +432,11 @@ void Transcoder::JobState::ReportError(GstMessage* msg) {
|
||||||
g_error_free(error);
|
g_error_free(error);
|
||||||
free(debugs);
|
free(debugs);
|
||||||
|
|
||||||
|
// clean up output file if it was already created
|
||||||
|
if (QFile::exists(job_.output)) {
|
||||||
|
QFile::remove(job_.output);
|
||||||
|
}
|
||||||
|
|
||||||
emit parent_->LogLine(
|
emit parent_->LogLine(
|
||||||
tr("Error processing %1: %2")
|
tr("Error processing %1: %2")
|
||||||
.arg(UrlToLocalFileIfPossible(job_.input), message));
|
.arg(UrlToLocalFileIfPossible(job_.input), message));
|
||||||
|
|
Loading…
Reference in New Issue