mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-23 16:28:19 +01:00
Transcoder now deletes created files on error
This commit is contained in:
parent
bb618efc5d
commit
3a40be6706
@ -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
Block a user